#F0DC66#F0DC66

#F0DC66 is a very light, vivid yellow. Relative luminance 0.707; OKLCH L 88.8% C 0.139 H 99.8°. Best body text is #000000 at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#F0DC66
RGBrgb(240, 220, 102)
HSLhsl(51, 82%, 67%)
HSVhsv(51, 58%, 94%)
CMYKcmyk(0%, 8.3%, 57.5%, 5.9%)
CIE-LABlab(87.33, -7.29, 59.31)
CIE-LCHlch(87.33, 59.76, 97.01°)
OKLaboklab(88.83% -0.0237 0.1374)
OKLCHoklch(88.83% 0.139 99.8)
XYZxyz(63.9290, 70.6736, 22.8417)
Luminance0.7067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC66 #667AF0
analogous
#F09766 #F0DC66 #BFF066
triadic
#F0DC66 #66F0DC #DC66F0
tetradic
#F0DC66 #66F097 #667AF0 #F066BF
square
#F0DC66 #66F097 #667AF0 #F066BF
split-complementary
#F0DC66 #66BFF0 #9766F0
monochromatic
#C8AE14 #EBCF2E #F0DC66 #F5E99E #FBF5D5

Accessibility & contrast

On white

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

On black

15.13
#F0DC66 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC66
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC66#FFFFFF#000000##000000
##F0DC661.001.3915.1315.13
#FFFFFF1.391.0021.0021.00
#00000015.1321.001.001.00
##00000015.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED65A
Deuteranopia (green-blind)
#F4DE6C
Tritanopia (blue-blind)
#FFCEC2
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0dc66;
/* rgb */ color: rgb(240, 220, 102);
/* oklch */ color: oklch(88.8% 0.139 99.8);
Tailwind
colors: {
  custom: {
    50: '#f8e695',
    500: '#f0dc66',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc66;
$custom-light: #f8e695;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc66",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 102
  },
  "hsl": {
    "h": 51.304,
    "s": 82.143,
    "l": 67.059
  },
  "oklch": {
    "l": 0.88825,
    "c": 0.13947,
    "h": 99.8
  },
  "luminance": 0.70671
}

Semantic roles & 50–950 ramp

primary
#F0DC66
secondary
#354AC5
accent
#26DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F0DC66

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

Preview Lab → · Contrast checker → · Palette generator →

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