#F5DF71#F5DF71

#F5DF71 is a very light, vivid yellow. Relative luminance 0.734; OKLCH L 90.0% C 0.133 H 98.2°. Best body text is #000000 at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#F5DF71
RGBrgb(245, 223, 113)
HSLhsl(50, 87%, 70%)
HSVhsv(50, 54%, 96%)
CMYKcmyk(0%, 9%, 53.9%, 3.9%)
CIE-LABlab(88.63, -5.94, 55.92)
CIE-LCHlch(88.63, 56.23, 96.07°)
OKLaboklab(90% -0.0189 0.1312)
OKLCHoklch(90% 0.133 98.2)
XYZxyz(67.0269, 73.3828, 26.2533)
Luminance0.7338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DF71 #7187F5
analogous
#F59D71 #F5DF71 #C9F571
triadic
#F5DF71 #71F5DF #DF71F5
tetradic
#F5DF71 #71F59D #7187F5 #F571C9
square
#F5DF71 #71F59D #7187F5 #F571C9
split-complementary
#F5DF71 #71C9F5 #9D71F5
monochromatic
#DCBA10 #F1D238 #F5DF71 #F9ECAA #FDF9E2

Accessibility & contrast

On white

1.34
#F5DF71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.68
#F5DF71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DF71
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DF71#FFFFFF#000000##000000
##F5DF711.001.3415.6815.68
#FFFFFF1.341.0021.0021.00
#00000015.6821.001.001.00
##00000015.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA67
Deuteranopia (green-blind)
#F7E276
Tritanopia (blue-blind)
#FFD1C6
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f5df71;
/* rgb */ color: rgb(245, 223, 113);
/* oklch */ color: oklch(90.0% 0.133 98.2);
Tailwind
colors: {
  custom: {
    50: '#fbe89d',
    500: '#f5df71',
    950: '#000000',
  },
}
SCSS
$custom: #f5df71;
$custom-light: #fbe89d;
$custom-dark: #000000;
JSON
{
  "hex": "#f5df71",
  "rgb": {
    "r": 245,
    "g": 223,
    "b": 113
  },
  "hsl": {
    "h": 50,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.89996,
    "c": 0.13257,
    "h": 98.2
  },
  "luminance": 0.7338
}

Semantic roles & 50–950 ramp

primary
#F5DF71
secondary
#3B54CF
accent
#28E302
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F5DF71

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

Preview Lab → · Contrast checker → · Palette generator →

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