#FDF178#FDF178

#FDF178 is a very light, vivid yellow. Relative luminance 0.851; OKLCH L 94.4% C 0.143 H 103.6°. Best body text is #000000 at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#FDF178
RGBrgb(253, 241, 120)
HSLhsl(55, 97%, 73%)
HSVhsv(55, 53%, 99%)
CMYKcmyk(0%, 4.7%, 52.6%, 0.8%)
CIE-LABlab(93.95, -11.15, 59.09)
CIE-LCHlch(93.95, 60.13, 100.68°)
OKLaboklab(94.4% -0.0336 0.1386)
OKLCHoklch(94.4% 0.143 103.6)
XYZxyz(75.3557, 85.1518, 30.2322)
Luminance0.8515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF178 #7884FD
analogous
#FDAE78 #FDF178 #C7FD78
triadic
#FDF178 #78FDF1 #F178FD
tetradic
#FDF178 #78FDAE #7884FD #FD78C7
square
#FDF178 #78FDAE #7884FD #FD78C7
split-complementary
#FDF178 #78C7FD #AE78FD
monochromatic
#F7E104 #FCEB3C #FDF178 #FEF7B4 #FFFCE1

Accessibility & contrast

On white

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

On black

18.03
#FDF178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF178
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF178#FFFFFF#000000##000000
##FDF1781.001.1618.0318.03
#FFFFFF1.161.0021.0021.00
#00000018.0321.001.001.00
##00000018.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA6D
Deuteranopia (green-blind)
#FFF17E
Tritanopia (blue-blind)
#FFE3D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fdf178;
/* rgb */ color: rgb(253, 241, 120);
/* oklch */ color: oklch(94.4% 0.143 103.6);
Tailwind
colors: {
  custom: {
    50: '#fff5a2',
    500: '#fdf178',
    950: '#000000',
  },
}
SCSS
$custom: #fdf178;
$custom-light: #fff5a2;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf178",
  "rgb": {
    "r": 253,
    "g": 241,
    "b": 120
  },
  "hsl": {
    "h": 54.586,
    "s": 97.08,
    "l": 73.137
  },
  "oklch": {
    "l": 0.94398,
    "c": 0.14266,
    "h": 103.6
  },
  "luminance": 0.85149
}

Semantic roles & 50–950 ramp

primary
#FDF178
secondary
#3F4DDA
accent
#15E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FDF178

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

Preview Lab → · Contrast checker → · Palette generator →

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