{"content":{"intro":"The Random Color Generator gives you a random colour with its HEX code and a preview swatch, good for sparking design ideas, testing layouts or picking a placeholder colour.","sections":[["What a HEX code means","A HEX colour like #3FAE8C is three pairs of hexadecimal digits for red, green and blue, each from 00 to FF (0 to 255). That gives 256 × 256 × 256 = 16,777,216 possible colours."],["Using a random colour","Random colours make great starting points: generate until something catches your eye, then use the Color Palette Generator to build matching colours around it, or the Color Format Converter to get RGB and HSL values."],["Checking readability","If you'll use the colour for text or buttons, make sure it contrasts enough with its background. Accessibility guidelines recommend a contrast ratio of at least 4.5:1 for normal-sized text."]],"faqs":[{"q":"How many colours can a HEX code show?","a":"16,777,216, every combination of 256 levels of red, green and blue."},{"q":"How do I get the RGB value?","a":"Paste the HEX code into the Color Format Converter."},{"q":"Can I use the colour in CSS?","a":"Yes, HEX codes work directly in CSS, for example color: #3fae8c;"}]},"sfaq":[{"q":"What is a hex color code?","a":"A hex code represents a color using six characters for red, green, and blue intensity (like #48D1CC), the standard format used in web design."}],"copy":{"explain":"A random hue, saturation and lightness are picked within the range for the style you choose: Vivid, Pastel, Muted or Dark, or across the whole range for Any, then converted to HEX, RGB and HSL. Text contrast uses the WCAG formula; 4.5:1 is the AA minimum for normal text.","example":"Opens with a random colour such as #20B3DF, with its HEX, RGB and HSL codes. The text check shows black text reads well on it (7.71:1, passes AA) but white doesn't (2.45:1). Choose Pastel and tap ↻ for soft colours like #A5F3D0; tap any recent swatch to bring it back.","intro":"The Random Color Generator gives you a random colour with a big preview, its HEX, RGB and HSL codes, and a check of whether white or black text is readable on it. Choose a style: Vivid, Pastel, Muted or Dark, and your recent colours are kept as swatches you can tap to go back to.","sections":[["What a HEX code means","A HEX colour like #3FAE8C is three pairs of hexadecimal digits for red, green and blue, each from 00 to FF (0 to 255). That gives 256 × 256 × 256 = 16,777,216 possible colours."],["Pick a mood","Fully random colours are often murky. The style buttons keep the randomness but limit it: Pastel gives light, soft colours; Vivid gives bright, saturated ones; Muted gives greyish, calm tones; Dark gives deep shades for backgrounds."],["Checking readability","If you'll use the colour behind text or on a button, the contrast check tells you straight away whether white or black text passes the accessibility guideline of 4.5:1 for normal text, or 3:1 for large text."]],"faqs":[{"q":"How many colours can a HEX code show?","a":"16,777,216, every combination of 256 levels of red, green and blue."},{"q":"How do I copy the code?","a":"Tap the big swatch to copy the HEX code, or tap the HEX, RGB or HSL row to copy that format."},{"q":"Can I use the colour in CSS?","a":"Yes, all three formats work directly in CSS, for example color: #3fae8c;"}]},"feat":[["Big preview","With HEX, RGB and HSL codes."],["Four styles","Vivid, Pastel, Muted or Dark."],["Readable text check","Shows if white or black text works on it."],["Recent swatches","Tap one to go back to it."]],"faqx":[{"q":"How do I convert a HEX code to RGB?","a":"Split the six digits into three pairs and convert each from base 16 to a number from 0 to 255. #20B3DF becomes 20, B3 and DF, which is rgb(32, 179, 223). The tool shows the RGB and HSL codes for every colour, so you don't need to convert by hand."},{"q":"What do the numbers in HSL mean?","a":"HSL stands for hue, saturation and lightness. Hue is the position on the colour wheel from 0 to 360 degrees, saturation is how intense the colour is, and lightness runs from black at 0% to white at 100%. #20B3DF is about hsl(194, 75%, 50%)."},{"q":"What contrast ratio do I need for readable text?","a":"WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text; AAA asks for 7:1. The tool checks white and black text on each colour and marks it AA, Large text only, or Too low. Black on #20B3DF scores 7.71:1, white only 2.45:1."},{"q":"What is the difference between Vivid, Pastel, Muted and Dark?","a":"Each style limits the saturation and lightness picked. Vivid gives strong, bright colours, Pastel gives soft and light ones, Muted gives greyer, toned-down shades and Dark gives deep colours. Any picks from the full range, so you can get all kinds."},{"q":"How do I go back to a colour I liked?","a":"Tap its swatch under Recent colours to bring it back with all its codes. The tool keeps your last 14 colours while the page is open, but they are not saved, so copy any code you want to keep before you leave or reload."},{"q":"Will the colour look the same on every screen?","a":"Not exactly. The HEX code is the same everywhere, but phones, laptops and monitors show colours differently depending on the panel, brightness and settings, and printing changes it more. For print, ask your printer for a proof."},{"q":"How can I use this for a brand or design palette?","a":"Generate colours in one style, such as Pastel or Muted, so they share a similar feel, and keep the ones you like from Recent colours. Check the text contrast for each before using it behind words on a website, poster or social media post."},{"q":"Why does it suggest black text on some bright colours?","a":"Contrast depends on how light a colour looks to the eye, not on how bold it seems. Bright yellows, cyans and greens are light, so black text often has much higher contrast on them than white. Follow the AA result rather than guessing."}]}