#FDF271#FDF271

#FDF271 is a very light, vivid yellow. Relative luminance 0.856; OKLCH L 94.5% C 0.150 H 104.4°. Best body text is #000000 at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#FDF271
RGBrgb(253, 242, 113)
HSLhsl(55, 97%, 72%)
HSVhsv(55, 55%, 99%)
CMYKcmyk(0%, 4.3%, 55.3%, 0.8%)
CIE-LABlab(94.13, -12.18, 62.44)
CIE-LCHlch(94.13, 63.61, 101.03°)
OKLaboklab(94.52% -0.0373 0.1451)
OKLCHoklch(94.52% 0.15 104.4)
XYZxyz(75.2432, 85.5817, 28.1750)
Luminance0.8558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF271 #717CFD
analogous
#FDAC71 #FDF271 #C2FD71
triadic
#FDF271 #71FDF2 #F271FD
tetradic
#FDF271 #71FDAC #717CFD #FD71C2
square
#FDF271 #71FDAC #717CFD #FD71C2
split-complementary
#FDF271 #71C2FD #AC71FD
monochromatic
#F0DE03 #FCEC35 #FDF271 #FEF8AD #FFFCE1

Accessibility & contrast

On white

1.16
#FDF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.12
#FDF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF271
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF271#FFFFFF#000000##000000
##FDF2711.001.1618.1218.12
#FFFFFF1.161.0021.0021.00
#00000018.1221.001.001.00
##00000018.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB64
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fdf271;
/* rgb */ color: rgb(253, 242, 113);
/* oklch */ color: oklch(94.5% 0.150 104.4);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fdf271',
    950: '#000000',
  },
}
SCSS
$custom: #fdf271;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf271",
  "rgb": {
    "r": 253,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 55.286,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.94522,
    "c": 0.14985,
    "h": 104.4
  },
  "luminance": 0.85579
}

Semantic roles & 50–950 ramp

primary
#FDF271
secondary
#3945D9
accent
#12E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FDF271

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

Preview Lab → · Contrast checker → · Palette generator →

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