#F0DC62#F0DC62

#F0DC62 is a very light, vivid yellow. Relative luminance 0.706; OKLCH L 88.8% C 0.143 H 100.1°. Best body text is #000000 at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#F0DC62
RGBrgb(240, 220, 98)
HSLhsl(52, 83%, 66%)
HSVhsv(52, 59%, 94%)
CMYKcmyk(0%, 8.3%, 59.2%, 5.9%)
CIE-LABlab(87.29, -7.57, 61.04)
CIE-LCHlch(87.29, 61.51, 97.07°)
OKLaboklab(88.78% -0.025 0.1407)
OKLCHoklch(88.78% 0.143 100.1)
XYZxyz(63.7354, 70.5961, 21.8221)
Luminance0.7059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC62 #6276F0
analogous
#F09562 #F0DC62 #BDF062
triadic
#F0DC62 #62F0DC #DC62F0
tetradic
#F0DC62 #62F095 #6276F0 #F062BD
square
#F0DC62 #62F095 #6276F0 #F062BD
split-complementary
#F0DC62 #62BDF0 #9562F0
monochromatic
#C5AC13 #EBD02A #F0DC62 #F5E89A #FBF5D2

Accessibility & contrast

On white

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

On black

15.12
#F0DC62 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC62
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC62#FFFFFF#000000##000000
##F0DC621.001.3915.1215.12
#FFFFFF1.391.0021.0021.00
#00000015.1221.001.001.00
##00000015.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0dc62;
/* rgb */ color: rgb(240, 220, 98);
/* oklch */ color: oklch(88.8% 0.143 100.1);
Tailwind
colors: {
  custom: {
    50: '#f8e693',
    500: '#f0dc62',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc62;
$custom-light: #f8e693;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc62",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 98
  },
  "hsl": {
    "h": 51.549,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.88783,
    "c": 0.14286,
    "h": 100.1
  },
  "luminance": 0.70594
}

Semantic roles & 50–950 ramp

primary
#F0DC62
secondary
#3448C2
accent
#25DF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0DC62

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

Preview Lab → · Contrast checker → · Palette generator →

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