#F0CB51#F0CB51

#F0CB51 is a very light, vivid yellow. Relative luminance 0.618; OKLCH L 85.2% C 0.144 H 92.1°. Best body text is #000000 at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#F0CB51
RGBrgb(240, 203, 81)
HSLhsl(46, 84%, 63%)
HSVhsv(46, 66%, 94%)
CMYKcmyk(0%, 15.4%, 66.3%, 5.9%)
CIE-LABlab(82.83, 0.02, 63.50)
CIE-LCHlch(82.83, 63.50, 89.98°)
OKLaboklab(85.21% -0.0051 0.1435)
OKLCHoklch(85.21% 0.144 92.1)
XYZxyz(58.7793, 61.8345, 16.6222)
Luminance0.6183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CB51 #5176F0
analogous
#F07C51 #F0CB51 #C5F051
triadic
#F0CB51 #51F0CB #CB51F0
tetradic
#F0CB51 #51F07C #5176F0 #F051C5
square
#F0CB51 #51F07C #5176F0 #F051C5
split-complementary
#F0CB51 #51C5F0 #7C51F0
monochromatic
#B79010 #EBBA19 #F0CB51 #F5DC89 #FAEDC2

Accessibility & contrast

On white

1.57
#F0CB51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.37
#F0CB51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CB51
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CB51#FFFFFF#000000##000000
##F0CB511.001.5713.3713.37
#FFFFFF1.571.0021.0021.00
#00000013.3721.001.001.00
##00000013.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C842
Deuteranopia (green-blind)
#E9D357
Tritanopia (blue-blind)
#FFBBB1
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #f0cb51;
/* rgb */ color: rgb(240, 203, 81);
/* oklch */ color: oklch(85.2% 0.144 92.1);
Tailwind
colors: {
  custom: {
    50: '#f9da87',
    500: '#f0cb51',
    950: '#000000',
  },
}
SCSS
$custom: #f0cb51;
$custom-light: #f9da87;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cb51",
  "rgb": {
    "r": 240,
    "g": 203,
    "b": 81
  },
  "hsl": {
    "h": 46.038,
    "s": 84.127,
    "l": 62.941
  },
  "oklch": {
    "l": 0.85205,
    "c": 0.14357,
    "h": 92.1
  },
  "luminance": 0.61831
}

Semantic roles & 50–950 ramp

primary
#F0CB51
secondary
#2F4FB6
accent
#38E105
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F0CB51

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

Preview Lab → · Contrast checker → · Palette generator →

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