#F0DF71#F0DF71

#F0DF71 is a very light, vivid yellow. Relative luminance 0.725; OKLCH L 89.6% C 0.132 H 100.6°. Best body text is #000000 at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#F0DF71
RGBrgb(240, 223, 113)
HSLhsl(52, 81%, 69%)
HSVhsv(52, 53%, 94%)
CMYKcmyk(0%, 7.1%, 52.9%, 5.9%)
CIE-LABlab(88.21, -7.96, 55.31)
CIE-LCHlch(88.21, 55.88, 98.19°)
OKLaboklab(89.56% -0.0244 0.13)
OKLCHoklch(89.56% 0.132 100.6)
XYZxyz(65.3056, 72.4953, 26.1726)
Luminance0.7249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF71 #7182F0
analogous
#F0A071 #F0DF71 #C1F071
triadic
#F0DF71 #71F0DF #DF71F0
tetradic
#F0DF71 #71F0A0 #7182F0 #F071C1
square
#F0DF71 #71F0A0 #7182F0 #F071C1
split-complementary
#F0DF71 #71C1F0 #A071F0
monochromatic
#D1B816 #EAD33A #F0DF71 #F6EBA8 #FCF8E0

Accessibility & contrast

On white

1.35
#F0DF71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.50
#F0DF71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF71
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF71#FFFFFF#000000##000000
##F0DF711.001.3515.5015.50
#FFFFFF1.351.0021.0021.00
#00000015.5021.001.001.00
##00000015.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D967
Deuteranopia (green-blind)
#F6E076
Tritanopia (blue-blind)
#FFD2C6
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0df71;
/* rgb */ color: rgb(240, 223, 113);
/* oklch */ color: oklch(89.6% 0.132 100.6);
Tailwind
colors: {
  custom: {
    50: '#f7e89d',
    500: '#f0df71',
    950: '#000000',
  },
}
SCSS
$custom: #f0df71;
$custom-light: #f7e89d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df71",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 113
  },
  "hsl": {
    "h": 51.969,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.8956,
    "c": 0.13227,
    "h": 100.6
  },
  "luminance": 0.72493
}

Semantic roles & 50–950 ramp

primary
#F0DF71
secondary
#3C4FC9
accent
#25DD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F0DF71

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

Preview Lab → · Contrast checker → · Palette generator →

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