#F0D671#F0D671

#F0D671 is a very light, vivid yellow. Relative luminance 0.678; OKLCH L 87.7% C 0.125 H 95.2°. Best body text is #000000 at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#F0D671
RGBrgb(240, 214, 113)
HSLhsl(48, 81%, 69%)
HSVhsv(48, 53%, 94%)
CMYKcmyk(0%, 10.8%, 52.9%, 5.9%)
CIE-LABlab(85.91, -3.41, 52.61)
CIE-LCHlch(85.91, 52.72, 93.71°)
OKLaboklab(87.74% -0.0113 0.1241)
OKLCHoklch(87.74% 0.125 95.2)
XYZxyz(62.9647, 67.8134, 25.3923)
Luminance0.6781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D671 #718BF0
analogous
#F09771 #F0D671 #CAF071
triadic
#F0D671 #71F0D6 #D671F0
tetradic
#F0D671 #71F097 #718BF0 #F071CA
square
#F0D671 #71F097 #718BF0 #F071CA
split-complementary
#F0D671 #71CAF0 #9771F0
monochromatic
#D1AA16 #EAC63A #F0D671 #F6E6A8 #FCF6E0

Accessibility & contrast

On white

1.44
#F0D671 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.56
#F0D671 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D671
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D671#FFFFFF#000000##000000
##F0D6711.001.4414.5614.56
#FFFFFF1.441.0021.0021.00
#00000014.5621.001.001.00
##00000014.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D268
Deuteranopia (green-blind)
#EFDA75
Tritanopia (blue-blind)
#FFC9BF
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #f0d671;
/* rgb */ color: rgb(240, 214, 113);
/* oklch */ color: oklch(87.7% 0.125 95.2);
Tailwind
colors: {
  custom: {
    50: '#f7e29c',
    500: '#f0d671',
    950: '#000000',
  },
}
SCSS
$custom: #f0d671;
$custom-light: #f7e29c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d671",
  "rgb": {
    "r": 240,
    "g": 214,
    "b": 113
  },
  "hsl": {
    "h": 47.717,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.87744,
    "c": 0.12462,
    "h": 95.2
  },
  "luminance": 0.67811
}

Semantic roles & 50–950 ramp

primary
#F0D671
secondary
#3C59C9
accent
#34DD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F0D671

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

Preview Lab → · Contrast checker → · Palette generator →

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