#FDF371#FDF371

#FDF371 is a very light, vivid yellow. Relative luminance 0.862; OKLCH L 94.7% C 0.151 H 104.9°. Best body text is #000000 at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#FDF371
RGBrgb(253, 243, 113)
HSLhsl(56, 97%, 72%)
HSVhsv(56, 55%, 99%)
CMYKcmyk(0%, 4%, 55.3%, 0.8%)
CIE-LABlab(94.39, -12.67, 62.73)
CIE-LCHlch(94.39, 63.99, 101.42°)
OKLaboklab(94.73% -0.0387 0.1458)
OKLCHoklch(94.73% 0.151 104.9)
XYZxyz(75.5416, 86.1785, 28.2745)
Luminance0.8618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF371 #717BFD
analogous
#FDAD71 #FDF371 #C1FD71
triadic
#FDF371 #71FDF3 #F371FD
tetradic
#FDF371 #71FDAD #717BFD #FD71C1
square
#FDF371 #71FDAD #717BFD #FD71C1
split-complementary
#FDF371 #71C1FD #AD71FD
monochromatic
#F0DF03 #FCEE35 #FDF371 #FEF8AD #FFFCE1

Accessibility & contrast

On white

1.15
#FDF371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.24
#FDF371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF371
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF371#FFFFFF#000000##000000
##FDF3711.001.1518.2418.24
#FFFFFF1.151.0021.0021.00
#00000018.2421.001.001.00
##00000018.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB64
Deuteranopia (green-blind)
#FFF278
Tritanopia (blue-blind)
#FFE5D6
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fdf371;
/* rgb */ color: rgb(253, 243, 113);
/* oklch */ color: oklch(94.7% 0.151 104.9);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fdf371',
    950: '#000000',
  },
}
SCSS
$custom: #fdf371;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf371",
  "rgb": {
    "r": 253,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 55.714,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.94725,
    "c": 0.1508,
    "h": 104.9
  },
  "luminance": 0.86176
}

Semantic roles & 50–950 ramp

primary
#FDF371
secondary
#3944D9
accent
#10E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FDF371

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

Preview Lab → · Contrast checker → · Palette generator →

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