#F0CC5A#F0CC5A

#F0CC5A is a very light, vivid yellow. Relative luminance 0.624; OKLCH L 85.5% C 0.137 H 91.7°. Best body text is #000000 at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#F0CC5A
RGBrgb(240, 204, 90)
HSLhsl(46, 83%, 65%)
HSVhsv(46, 63%, 94%)
CMYKcmyk(0%, 15%, 62.5%, 5.9%)
CIE-LABlab(83.15, 0.04, 59.99)
CIE-LCHlch(83.15, 59.99, 89.96°)
OKLaboklab(85.49% -0.004 0.1374)
OKLCHoklch(85.49% 0.137 91.7)
XYZxyz(59.3763, 62.4524, 18.5979)
Luminance0.6245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CC5A #5A7EF0
analogous
#F0815A #F0CC5A #C9F05A
triadic
#F0CC5A #5AF0CC #CC5AF0
tetradic
#F0CC5A #5AF081 #5A7EF0 #F05AC9
square
#F0CC5A #5AF081 #5A7EF0 #F05AC9
split-complementary
#F0CC5A #5AC9F0 #815AF0
monochromatic
#BE9511 #EBBB22 #F0CC5A #F5DD92 #FAEFCA

Accessibility & contrast

On white

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

On black

13.49
#F0CC5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CC5A
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CC5A#FFFFFF#000000##000000
##F0CC5A1.001.5613.4913.49
#FFFFFF1.561.0021.0021.00
#00000013.4921.001.001.00
##00000013.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C94D
Deuteranopia (green-blind)
#E9D45F
Tritanopia (blue-blind)
#FFBDB3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f0cc5a;
/* rgb */ color: rgb(240, 204, 90);
/* oklch */ color: oklch(85.5% 0.137 91.7);
Tailwind
colors: {
  custom: {
    50: '#f8db8d',
    500: '#f0cc5a',
    950: '#000000',
  },
}
SCSS
$custom: #f0cc5a;
$custom-light: #f8db8d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cc5a",
  "rgb": {
    "r": 240,
    "g": 204,
    "b": 90
  },
  "hsl": {
    "h": 45.6,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.85488,
    "c": 0.13741,
    "h": 91.7
  },
  "luminance": 0.62449
}

Semantic roles & 50–950 ramp

primary
#F0CC5A
secondary
#3253BD
accent
#3AE006
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0CC5A

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

Preview Lab → · Contrast checker → · Palette generator →

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