#F5D571#F5D571

#F5D571 is a very light, vivid yellow. Relative luminance 0.682; OKLCH L 88.0% C 0.125 H 92.0°. Best body text is #000000 at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#F5D571
RGBrgb(245, 213, 113)
HSLhsl(45, 87%, 70%)
HSVhsv(45, 54%, 96%)
CMYKcmyk(0%, 13.1%, 53.9%, 3.9%)
CIE-LABlab(86.10, -0.87, 52.94)
CIE-LCHlch(86.10, 52.95, 90.94°)
OKLaboklab(88% -0.0043 0.1248)
OKLCHoklch(88% 0.125 92)
XYZxyz(64.4336, 68.1963, 25.3888)
Luminance0.6819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D571 #7191F5
analogous
#F59371 #F5D571 #D3F571
triadic
#F5D571 #71F5D5 #D571F5
tetradic
#F5D571 #71F593 #7191F5 #F571D3
square
#F5D571 #71F593 #7191F5 #F571D3
split-complementary
#F5D571 #71D3F5 #9371F5
monochromatic
#DCAB10 #F1C438 #F5D571 #F9E6AA #FDF7E2

Accessibility & contrast

On white

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

On black

14.64
#F5D571 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D571
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D571#FFFFFF#000000##000000
##F5D5711.001.4314.6414.64
#FFFFFF1.431.0021.0021.00
#00000014.6421.001.001.00
##00000014.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5d571;
/* rgb */ color: rgb(245, 213, 113);
/* oklch */ color: oklch(88.0% 0.125 92.0);
Tailwind
colors: {
  custom: {
    50: '#fbe19c',
    500: '#f5d571',
    950: '#000000',
  },
}
SCSS
$custom: #f5d571;
$custom-light: #fbe19c;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d571",
  "rgb": {
    "r": 245,
    "g": 213,
    "b": 113
  },
  "hsl": {
    "h": 45.455,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.88,
    "c": 0.12482,
    "h": 92
  },
  "luminance": 0.68193
}

Semantic roles & 50–950 ramp

primary
#F5D571
secondary
#3B5FCF
accent
#39E302
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F5D571

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

Preview Lab → · Contrast checker → · Palette generator →

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