#F0D971#F0D971

#F0D971 is a very light, vivid yellow. Relative luminance 0.693; OKLCH L 88.3% C 0.127 H 97.1°. Best body text is #000000 at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#F0D971
RGBrgb(240, 217, 113)
HSLhsl(49, 81%, 69%)
HSVhsv(49, 53%, 94%)
CMYKcmyk(0%, 9.6%, 52.9%, 5.9%)
CIE-LABlab(86.67, -4.93, 53.51)
CIE-LCHlch(86.67, 53.74, 95.27°)
OKLaboklab(88.35% -0.0157 0.1261)
OKLCHoklch(88.35% 0.127 97.1)
XYZxyz(63.7309, 69.3459, 25.6477)
Luminance0.6934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D971 #7188F0
analogous
#F09A71 #F0D971 #C8F071
triadic
#F0D971 #71F0D9 #D971F0
tetradic
#F0D971 #71F09A #7188F0 #F071C8
square
#F0D971 #71F09A #7188F0 #F071C8
split-complementary
#F0D971 #71C8F0 #9A71F0
monochromatic
#D1AF16 #EACA3A #F0D971 #F6E8A8 #FCF7E0

Accessibility & contrast

On white

1.41
#F0D971 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.87
#F0D971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D971
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D971#FFFFFF#000000##000000
##F0D9711.001.4114.8714.87
#FFFFFF1.411.0021.0021.00
#00000014.8721.001.001.00
##00000014.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD467
Deuteranopia (green-blind)
#F1DC75
Tritanopia (blue-blind)
#FFCCC1
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f0d971;
/* rgb */ color: rgb(240, 217, 113);
/* oklch */ color: oklch(88.3% 0.127 97.1);
Tailwind
colors: {
  custom: {
    50: '#f7e49c',
    500: '#f0d971',
    950: '#000000',
  },
}
SCSS
$custom: #f0d971;
$custom-light: #f7e49c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d971",
  "rgb": {
    "r": 240,
    "g": 217,
    "b": 113
  },
  "hsl": {
    "h": 49.134,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.88346,
    "c": 0.12705,
    "h": 97.1
  },
  "luminance": 0.69343
}

Semantic roles & 50–950 ramp

primary
#F0D971
secondary
#3C56C9
accent
#2FDD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F0D971

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

Preview Lab → · Contrast checker → · Palette generator →

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