#F0D862#F0D862

#F0D862 is a very light, vivid yellow. Relative luminance 0.685; OKLCH L 88.0% C 0.140 H 97.9°. Best body text is #000000 at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#F0D862
RGBrgb(240, 216, 98)
HSLhsl(50, 83%, 66%)
HSVhsv(50, 59%, 94%)
CMYKcmyk(0%, 10%, 59.2%, 5.9%)
CIE-LABlab(86.27, -5.55, 59.90)
CIE-LCHlch(86.27, 60.16, 95.29°)
OKLaboklab(87.97% -0.0192 0.1382)
OKLCHoklch(87.97% 0.14 97.9)
XYZxyz(62.6982, 68.5216, 21.4763)
Luminance0.6852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D862 #627AF0
analogous
#F09162 #F0D862 #C1F062
triadic
#F0D862 #62F0D8 #D862F0
tetradic
#F0D862 #62F091 #627AF0 #F062C1
square
#F0D862 #62F091 #627AF0 #F062C1
split-complementary
#F0D862 #62C1F0 #9162F0
monochromatic
#C5A713 #EBCA2A #F0D862 #F5E69A #FBF4D2

Accessibility & contrast

On white

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

On black

14.70
#F0D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D862
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D862#FFFFFF#000000##000000
##F0D8621.001.4314.7014.70
#FFFFFF1.431.0021.0021.00
#00000014.7021.001.001.00
##00000014.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0d862;
/* rgb */ color: rgb(240, 216, 98);
/* oklch */ color: oklch(88.0% 0.140 97.9);
Tailwind
colors: {
  custom: {
    50: '#f8e393',
    500: '#f0d862',
    950: '#000000',
  },
}
SCSS
$custom: #f0d862;
$custom-light: #f8e393;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d862",
  "rgb": {
    "r": 240,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 49.859,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.87974,
    "c": 0.13955,
    "h": 97.9
  },
  "luminance": 0.68519
}

Semantic roles & 50–950 ramp

primary
#F0D862
secondary
#344CC2
accent
#2BDF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0D862

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

Preview Lab → · Contrast checker → · Palette generator →

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