#FDF8A2#FDF8A2

#FDF8A2 is a very light, moderate yellow. Relative luminance 0.906; OKLCH L 96.4% C 0.107 H 105.4°. Best body text is #000000 at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#FDF8A2
RGBrgb(253, 248, 162)
HSLhsl(57, 96%, 81%)
HSVhsv(57, 36%, 99%)
CMYKcmyk(0%, 2%, 36%, 0.8%)
CIE-LABlab(96.26, -10.61, 41.94)
CIE-LCHlch(96.26, 43.26, 104.19°)
OKLaboklab(96.4% -0.0284 0.1031)
OKLCHoklch(96.4% 0.107 105.4)
XYZxyz(80.5980, 90.6279, 47.4226)
Luminance0.9063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF8A2 #A2A7FD
analogous
#FDCBA2 #FDF8A2 #D5FDA2
triadic
#FDF8A2 #A2FDF8 #F8A2FD
tetradic
#FDF8A2 #A2FDCB #A2A7FD #FDA2D5
square
#FDF8A2 #A2FDCB #A2A7FD #FDA2D5
split-complementary
#FDF8A2 #A2D5FD #CBA2FD
monochromatic
#FAEF2A #FCF366 #FDF8A2 #FEFDDE #FEFDE1

Accessibility & contrast

On white

1.10
#FDF8A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.13
#FDF8A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF8A2
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF8A2#FFFFFF#000000##000000
##FDF8A21.001.1019.1319.13
#FFFFFF1.101.0021.0021.00
#00000019.1321.001.001.00
##00000019.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF29C
Deuteranopia (green-blind)
#FFF6A5
Tritanopia (blue-blind)
#FFEDE2
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fdf8a2;
/* rgb */ color: rgb(253, 248, 162);
/* oklch */ color: oklch(96.4% 0.107 105.4);
Tailwind
colors: {
  custom: {
    50: '#fffabe',
    500: '#fdf8a2',
    950: '#000000',
  },
}
SCSS
$custom: #fdf8a2;
$custom-light: #fffabe;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf8a2",
  "rgb": {
    "r": 253,
    "g": 248,
    "b": 162
  },
  "hsl": {
    "h": 56.703,
    "s": 95.789,
    "l": 81.373
  },
  "oklch": {
    "l": 0.96401,
    "c": 0.10695,
    "h": 105.4
  },
  "luminance": 0.90626
}

Semantic roles & 50–950 ramp

primary
#FDF8A2
secondary
#636AE0
accent
#0DE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181712
muted
#868582

Preview Lab

Preview with #FDF8A2

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

Preview Lab → · Contrast checker → · Palette generator →

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