#F0DC5F#F0DC5F

#F0DC5F is a very light, vivid yellow. Relative luminance 0.705; OKLCH L 88.8% C 0.145 H 100.3°. Best body text is #000000 at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#F0DC5F
RGBrgb(240, 220, 95)
HSLhsl(52, 83%, 66%)
HSVhsv(52, 60%, 94%)
CMYKcmyk(0%, 8.3%, 60.4%, 5.9%)
CIE-LABlab(87.26, -7.77, 62.32)
CIE-LCHlch(87.26, 62.80, 97.11°)
OKLaboklab(88.75% -0.0259 0.143)
OKLCHoklch(88.75% 0.145 100.3)
XYZxyz(63.5964, 70.5405, 21.0900)
Luminance0.7054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC5F #5F73F0
analogous
#F0935F #F0DC5F #BBF05F
triadic
#F0DC5F #5FF0DC #DC5FF0
tetradic
#F0DC5F #5FF093 #5F73F0 #F05FBB
square
#F0DC5F #5FF093 #5F73F0 #F05FBB
split-complementary
#F0DC5F #5FBBF0 #935FF0
monochromatic
#C2AA12 #EBD027 #F0DC5F #F5E897 #FAF4CF

Accessibility & contrast

On white

1.39
#F0DC5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.11
#F0DC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC5F
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC5F#FFFFFF#000000##000000
##F0DC5F1.001.3915.1115.11
#FFFFFF1.391.0021.0021.00
#00000015.1121.001.001.00
##00000015.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD651
Deuteranopia (green-blind)
#F5DE65
Tritanopia (blue-blind)
#FFCEC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0dc5f;
/* rgb */ color: rgb(240, 220, 95);
/* oklch */ color: oklch(88.8% 0.145 100.3);
Tailwind
colors: {
  custom: {
    50: '#f8e691',
    500: '#f0dc5f',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc5f;
$custom-light: #f8e691;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc5f",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 95
  },
  "hsl": {
    "h": 51.724,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.88753,
    "c": 0.14531,
    "h": 100.3
  },
  "luminance": 0.70538
}

Semantic roles & 50–950 ramp

primary
#F0DC5F
secondary
#3347C0
accent
#24DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0DC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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