#F0DB5F#F0DB5F

#F0DB5F is a very light, vivid yellow. Relative luminance 0.700; OKLCH L 88.5% C 0.144 H 99.7°. Best body text is #000000 at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#F0DB5F
RGBrgb(240, 219, 95)
HSLhsl(51, 83%, 66%)
HSVhsv(51, 60%, 94%)
CMYKcmyk(0%, 8.8%, 60.4%, 5.9%)
CIE-LABlab(87.01, -7.27, 62.04)
CIE-LCHlch(87.01, 62.46, 96.68°)
OKLaboklab(88.55% -0.0244 0.1424)
OKLCHoklch(88.55% 0.144 99.7)
XYZxyz(63.3348, 70.0172, 21.0028)
Luminance0.7002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DB5F #5F74F0
analogous
#F0925F #F0DB5F #BDF05F
triadic
#F0DB5F #5FF0DB #DB5FF0
tetradic
#F0DB5F #5FF092 #5F74F0 #F05FBD
square
#F0DB5F #5FF092 #5F74F0 #F05FBD
split-complementary
#F0DB5F #5FBDF0 #925FF0
monochromatic
#C2A912 #EBCE27 #F0DB5F #F5E897 #FAF4CF

Accessibility & contrast

On white

1.40
#F0DB5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.00
#F0DB5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DB5F
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DB5F#FFFFFF#000000##000000
##F0DB5F1.001.4015.0015.00
#FFFFFF1.401.0021.0021.00
#00000015.0021.001.001.00
##00000015.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED551
Deuteranopia (green-blind)
#F4DD65
Tritanopia (blue-blind)
#FFCDC0
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f0db5f;
/* rgb */ color: rgb(240, 219, 95);
/* oklch */ color: oklch(88.5% 0.144 99.7);
Tailwind
colors: {
  custom: {
    50: '#f8e591',
    500: '#f0db5f',
    950: '#000000',
  },
}
SCSS
$custom: #f0db5f;
$custom-light: #f8e591;
$custom-dark: #000000;
JSON
{
  "hex": "#f0db5f",
  "rgb": {
    "r": 240,
    "g": 219,
    "b": 95
  },
  "hsl": {
    "h": 51.31,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.8855,
    "c": 0.14447,
    "h": 99.7
  },
  "luminance": 0.70015
}

Semantic roles & 50–950 ramp

primary
#F0DB5F
secondary
#3348C0
accent
#26DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0DB5F

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

Preview Lab → · Contrast checker → · Palette generator →

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