Random Color Generator

Generate a random color with its HEX, RGB and HSL values. Limit it to warm, cool, pastel or dark colors.

Palette
RecentColors from this visit appear here. Tap one to bring it back.
#27BDCEUse dark text
HEX#27BDCE
RGBrgb(39, 189, 206)
HSLhsl(186, 68%, 48%)

How to use it

Pick a palette, then press Generate. Copy the value in the format your tool needs. Tap a recent swatch to go back to it.

Palettes

Warm covers reds, oranges and yellows. Cool covers greens, blues and purples. Pastel keeps colors light and soft, and Dark only returns colors with at least 4.5:1 contrast against white text.

Colors generated with RandoCue's own palettes on October 27, 2026. Your results will differ every time.
PaletteFive colors it generatedGood for
Warm#CC7333, #F0AC19, #E0528B, #D16847, #F8B44FFood, autumn, posters that need energy
Cool#43ADA4, #25937F, #5B48A8, #3E65E5, #1118A2Calm layouts, water and sky, tech
Pastel#F4EB9A, #F3BBBA, #F1E2D0, #E7B1CA, #DEBCEBBackgrounds, invitations, soft illustration
Dark#461155, #1A4D2E, #17402A, #451A7A, #4A4817Text, headings, buttons with white labels

What each palette allows, in HSL:

  • Warm: hue 330° to 55°, saturation 55–95%, lightness 40–65%.
  • Cool: hue 160° to 280°, saturation 40–85%, lightness 35–65%.
  • Pastel: any hue, saturation 50–80%, lightness 78–88%.
  • Dark: any hue, saturation 35–70%, lightness 16–30%, and at least 4.5:1 contrast against white.

One color, three formats

HEX, RGB and HSL describe the same color in different ways. Take one purple:

FormatValueHow to read it
HEX#803BA5Three pairs of hexadecimal digits: red 80, green 3B, blue A5
RGBrgb(128, 59, 165)Red, green and blue from 0 to 255
HSLhsl(279, 47%, 44%)Hue 279° on the color wheel, 47% saturation, 44% lightness

To turn HEX into RGB, convert each pair from base 16. Letters A to F stand for 10 to 15. So 80 is 8 × 16 + 0 = 128, 3B is 3 × 16 + 11 = 59, and A5 is 10 × 16 + 5 = 165.

HSL is the easiest to adjust by hand. Keep the hue and change only the lightness, and you get a lighter or darker shade of the same color for hover states or backgrounds.

Contrast and accessibility

Text needs enough contrast with its background to be readable. The Web Content Accessibility Guidelines set the minimum at 4.5:1 for normal text and 3:1 for large text, which means at least 18 point, or 14 point bold. Ratios run from 1:1, the same color twice, to 21:1, black on white.

Source: Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C.

The purple above has a ratio of 6.80:1 with white, so white text on it passes for any size. Pastel colors are the opposite: the five in the table score between 1.2:1 and 1.8:1 with white, so they need dark text. The swatch label always picks whichever of dark or white text has more contrast, and every Dark palette color is guaranteed to reach 4.5:1 with white.

Design exercises

  • Three-color poster. Generate three colors and design a poster, a book cover or an app screen using only those, plus black and white.
  • Five-press palette. Press Generate five times in the same palette. Keep the three that work together, and fix the other two by changing only their HSL lightness.
  • Contrast check. Generate ten colors in Any. Before looking at the label, guess whether each one needs dark or white text, then check.
  • One palette a week. Pick Warm, Cool, Pastel or Dark and use nothing else for a week of sketches. Limits make color choices faster.

FAQ

How do I convert HEX to RGB?

Split the six digits into three pairs and convert each from base 16. #803BA5 gives 80 = 128, 3B = 59 and A5 = 165, so rgb(128, 59, 165). The generator shows all three formats, so you can also just copy the one you need.

What is a pastel color?

A light, soft color. In this generator, Pastel keeps lightness between 78% and 88% and saturation between 50% and 80%, so colors are pale without turning gray.

Which colors are accessible on white?

For normal text on a white background you need at least 4.5:1. Every color from the Dark palette meets that. For other palettes, check the label: if it says Use white text, the color has better contrast with white than with dark text, but it may still be under 4.5:1.

Can I generate a whole palette at once?

Not in one press. Each press gives one color, and the Recent swatches keep the last 8 so you can compare and go back. Press Generate five times in the same palette and keep the ones that work together.

Which format should I use?

HEX works in most design tools and CSS. RGB is common in code and spreadsheets. HSL makes it easy to adjust lightness by hand.

Are colors saved?

No. The last 8 colors stay in Recent while the page is open, and they are gone when you reload or leave it.

Last updated About these lists

Guides