#F0DF6B#F0DF6B

#F0DF6B is a very light, vivid yellow. Relative luminance 0.724; OKLCH L 89.5% C 0.138 H 101.1°. Best body text is #000000 at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#F0DF6B
RGBrgb(240, 223, 107)
HSLhsl(52, 82%, 68%)
HSVhsv(52, 55%, 94%)
CMYKcmyk(0%, 7.1%, 55.4%, 5.9%)
CIE-LABlab(88.14, -8.43, 57.99)
CIE-LCHlch(88.14, 58.60, 98.27°)
OKLaboklab(89.49% -0.0264 0.1352)
OKLCHoklch(89.49% 0.138 101.1)
XYZxyz(64.9789, 72.3646, 24.4521)
Luminance0.7236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF6B #6B7CF0
analogous
#F09C6B #F0DF6B #BEF06B
triadic
#F0DF6B #6BF0DF #DF6BF0
tetradic
#F0DF6B #6BF09C #6B7CF0 #F06BBE
square
#F0DF6B #6BF09C #6B7CF0 #F06BBE
split-complementary
#F0DF6B #6BBEF0 #9C6BF0
monochromatic
#CCB515 #EAD333 #F0DF6B #F6EBA3 #FBF7DA

Accessibility & contrast

On white

1.36
#F0DF6B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.47
#F0DF6B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF6B
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF6B#FFFFFF#000000##000000
##F0DF6B1.001.3615.4715.47
#FFFFFF1.361.0021.0021.00
#00000015.4721.001.001.00
##00000015.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D960
Deuteranopia (green-blind)
#F6E071
Tritanopia (blue-blind)
#FFD1C5
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0df6b;
/* rgb */ color: rgb(240, 223, 107);
/* oklch */ color: oklch(89.5% 0.138 101.1);
Tailwind
colors: {
  custom: {
    50: '#f8e899',
    500: '#f0df6b',
    950: '#000000',
  },
}
SCSS
$custom: #f0df6b;
$custom-light: #f8e899;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df6b",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 107
  },
  "hsl": {
    "h": 52.331,
    "s": 81.595,
    "l": 68.039
  },
  "oklch": {
    "l": 0.8949,
    "c": 0.13773,
    "h": 101.1
  },
  "luminance": 0.72362
}

Semantic roles & 50–950 ramp

primary
#F0DF6B
secondary
#3749C8
accent
#23DE08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F0DF6B

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

Preview Lab → · Contrast checker → · Palette generator →

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