#F0D864#F0D864

#F0D864 is a very light, vivid yellow. Relative luminance 0.686; OKLCH L 88.0% C 0.138 H 97.7°. Best body text is #000000 at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#F0D864
RGBrgb(240, 216, 100)
HSLhsl(50, 82%, 67%)
HSVhsv(50, 58%, 94%)
CMYKcmyk(0%, 10%, 58.3%, 5.9%)
CIE-LABlab(86.29, -5.41, 59.03)
CIE-LCHlch(86.29, 59.28, 95.24°)
OKLaboklab(88% -0.0186 0.1366)
OKLCHoklch(88% 0.138 97.7)
XYZxyz(62.7938, 68.5598, 21.9799)
Luminance0.6856 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D864 #647CF0
analogous
#F09264 #F0D864 #C2F064
triadic
#F0D864 #64F0D8 #D864F0
tetradic
#F0D864 #64F092 #647CF0 #F064C2
square
#F0D864 #64F092 #647CF0 #F064C2
split-complementary
#F0D864 #64C2F0 #9264F0
monochromatic
#C6A813 #EBCA2C #F0D864 #F5E69C #FBF4D4

Accessibility & contrast

On white

1.43
#F0D864 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.71
#F0D864 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D864
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D864#FFFFFF#000000##000000
##F0D8641.001.4314.7114.71
#FFFFFF1.431.0021.0021.00
#00000014.7121.001.001.00
##00000014.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD358
Deuteranopia (green-blind)
#F1DB69
Tritanopia (blue-blind)
#FFCABE
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f0d864;
/* rgb */ color: rgb(240, 216, 100);
/* oklch */ color: oklch(88.0% 0.138 97.7);
Tailwind
colors: {
  custom: {
    50: '#f8e394',
    500: '#f0d864',
    950: '#000000',
  },
}
SCSS
$custom: #f0d864;
$custom-light: #f8e394;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d864",
  "rgb": {
    "r": 240,
    "g": 216,
    "b": 100
  },
  "hsl": {
    "h": 49.714,
    "s": 82.353,
    "l": 66.667
  },
  "oklch": {
    "l": 0.87995,
    "c": 0.13786,
    "h": 97.7
  },
  "luminance": 0.68557
}

Semantic roles & 50–950 ramp

primary
#F0D864
secondary
#354DC4
accent
#2CDF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D864

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

Preview Lab → · Contrast checker → · Palette generator →

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