#F0DF5F#F0DF5F

#F0DF5F is a very light, vivid yellow. Relative luminance 0.721; OKLCH L 89.4% C 0.148 H 101.8°. Best body text is #000000 at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#F0DF5F
RGBrgb(240, 223, 95)
HSLhsl(53, 83%, 66%)
HSVhsv(53, 60%, 94%)
CMYKcmyk(0%, 7.1%, 60.4%, 5.9%)
CIE-LABlab(88.03, -9.27, 63.16)
CIE-LCHlch(88.03, 63.84, 98.35°)
OKLaboklab(89.36% -0.0302 0.1448)
OKLCHoklch(89.36% 0.148 101.8)
XYZxyz(64.3909, 72.1294, 21.3548)
Luminance0.7213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF5F #5F70F0
analogous
#F0975F #F0DF5F #B8F05F
triadic
#F0DF5F #5FF0DF #DF5FF0
tetradic
#F0DF5F #5FF097 #5F70F0 #F05FB8
square
#F0DF5F #5FF097 #5F70F0 #F05FB8
split-complementary
#F0DF5F #5FB8F0 #975FF0
monochromatic
#C2AE12 #EBD427 #F0DF5F #F5EA97 #FAF5CF

Accessibility & contrast

On white

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

On black

15.43
#F0DF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF5F
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF5F#FFFFFF#000000##000000
##F0DF5F1.001.3615.4315.43
#FFFFFF1.361.0021.0021.00
#00000015.4321.001.001.00
##00000015.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D951
Deuteranopia (green-blind)
#F7E066
Tritanopia (blue-blind)
#FFD1C4
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0df5f;
/* rgb */ color: rgb(240, 223, 95);
/* oklch */ color: oklch(89.4% 0.148 101.8);
Tailwind
colors: {
  custom: {
    50: '#f8e891',
    500: '#f0df5f',
    950: '#000000',
  },
}
SCSS
$custom: #f0df5f;
$custom-light: #f8e891;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df5f",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 95
  },
  "hsl": {
    "h": 52.966,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.89364,
    "c": 0.1479,
    "h": 101.8
  },
  "luminance": 0.72127
}

Semantic roles & 50–950 ramp

primary
#F0DF5F
secondary
#3344C0
accent
#20DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F0DF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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