#F0CC51#F0CC51

#F0CC51 is a very light, vivid yellow. Relative luminance 0.623; OKLCH L 85.4% C 0.144 H 92.6°. Best body text is #000000 at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#F0CC51
RGBrgb(240, 204, 81)
HSLhsl(46, 84%, 63%)
HSVhsv(46, 66%, 94%)
CMYKcmyk(0%, 15%, 66.3%, 5.9%)
CIE-LABlab(83.08, -0.50, 63.76)
CIE-LCHlch(83.08, 63.76, 90.45°)
OKLaboklab(85.4% -0.0066 0.144)
OKLCHoklch(85.4% 0.144 92.6)
XYZxyz(59.0162, 62.3083, 16.7012)
Luminance0.6230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CC51 #5175F0
analogous
#F07C51 #F0CC51 #C4F051
triadic
#F0CC51 #51F0CC #CC51F0
tetradic
#F0CC51 #51F07C #5175F0 #F051C4
square
#F0CC51 #51F07C #5175F0 #F051C4
split-complementary
#F0CC51 #51C4F0 #7C51F0
monochromatic
#B79110 #EBBB19 #F0CC51 #F5DD89 #FAEDC2

Accessibility & contrast

On white

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

On black

13.46
#F0CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CC51
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CC51#FFFFFF#000000##000000
##F0CC511.001.5613.4613.46
#FFFFFF1.561.0021.0021.00
#00000013.4621.001.001.00
##00000013.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C942
Deuteranopia (green-blind)
#EAD357
Tritanopia (blue-blind)
#FFBCB2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f0cc51;
/* rgb */ color: rgb(240, 204, 81);
/* oklch */ color: oklch(85.4% 0.144 92.6);
Tailwind
colors: {
  custom: {
    50: '#f9db87',
    500: '#f0cc51',
    950: '#000000',
  },
}
SCSS
$custom: #f0cc51;
$custom-light: #f9db87;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cc51",
  "rgb": {
    "r": 240,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 46.415,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.85404,
    "c": 0.14419,
    "h": 92.6
  },
  "luminance": 0.62305
}

Semantic roles & 50–950 ramp

primary
#F0CC51
secondary
#2F4EB6
accent
#37E105
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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