#F0CC5C#F0CC5C

#F0CC5C is a very light, vivid yellow. Relative luminance 0.625; OKLCH L 85.5% C 0.136 H 91.4°. Best body text is #000000 at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#F0CC5C
RGBrgb(240, 204, 92)
HSLhsl(45, 83%, 65%)
HSVhsv(45, 62%, 94%)
CMYKcmyk(0%, 15%, 61.7%, 5.9%)
CIE-LABlab(83.17, 0.17, 59.12)
CIE-LCHlch(83.17, 59.12, 89.84°)
OKLaboklab(85.51% -0.0034 0.1358)
OKLCHoklch(85.51% 0.136 91.4)
XYZxyz(59.4626, 62.4869, 19.0523)
Luminance0.6248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CC5C #5C80F0
analogous
#F0825C #F0CC5C #CAF05C
triadic
#F0CC5C #5CF0CC #CC5CF0
tetradic
#F0CC5C #5CF082 #5C80F0 #F05CCA
square
#F0CC5C #5CF082 #5C80F0 #F05CCA
split-complementary
#F0CC5C #5CCAF0 #825CF0
monochromatic
#C09612 #EBBA24 #F0CC5C #F5DE94 #FAEFCC

Accessibility & contrast

On white

1.56
#F0CC5C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.50
#F0CC5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CC5C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CC5C#FFFFFF#000000##000000
##F0CC5C1.001.5613.5013.50
#FFFFFF1.561.0021.0021.00
#00000013.5021.001.001.00
##00000013.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C950
Deuteranopia (green-blind)
#E9D461
Tritanopia (blue-blind)
#FFBDB4
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f0cc5c;
/* rgb */ color: rgb(240, 204, 92);
/* oklch */ color: oklch(85.5% 0.136 91.4);
Tailwind
colors: {
  custom: {
    50: '#f8db8e',
    500: '#f0cc5c',
    950: '#000000',
  },
}
SCSS
$custom: #f0cc5c;
$custom-light: #f8db8e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cc5c",
  "rgb": {
    "r": 240,
    "g": 204,
    "b": 92
  },
  "hsl": {
    "h": 45.405,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.85509,
    "c": 0.13582,
    "h": 91.4
  },
  "luminance": 0.62484
}

Semantic roles & 50–950 ramp

primary
#F0CC5C
secondary
#3254BE
accent
#3BE006
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140D
muted
#86837F

Preview Lab

Preview with #F0CC5C

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F0CC5C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva