#FDF397#FDF397

#FDF397 is a very light, moderate yellow. Relative luminance 0.872; OKLCH L 95.2% C 0.114 H 102.9°. Best body text is #000000 at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#FDF397
RGBrgb(253, 243, 151)
HSLhsl(54, 96%, 79%)
HSVhsv(54, 40%, 99%)
CMYKcmyk(0%, 4%, 40.3%, 0.8%)
CIE-LABlab(94.83, -9.31, 45.51)
CIE-LCHlch(94.83, 46.45, 101.56°)
OKLaboklab(95.22% -0.0254 0.1108)
OKLCHoklch(95.22% 0.114 102.9)
XYZxyz(78.1460, 87.2203, 41.9908)
Luminance0.8722 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF397 #97A1FD
analogous
#FDC097 #FDF397 #D4FD97
triadic
#FDF397 #97FDF3 #F397FD
tetradic
#FDF397 #97FDC0 #97A1FD #FD97D4
square
#FDF397 #97FDC0 #97A1FD #FD97D4
split-complementary
#FDF397 #97D4FD #C097FD
monochromatic
#FBE51F #FCEC5B #FDF397 #FEFAD3 #FEFCE1

Accessibility & contrast

On white

1.14
#FDF397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.44
#FDF397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF397
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF397#FFFFFF#000000##000000
##FDF3971.001.1418.4418.44
#FFFFFF1.141.0021.0021.00
#00000018.4421.001.001.00
##00000018.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED90
Deuteranopia (green-blind)
#FFF39B
Tritanopia (blue-blind)
#FFE7DC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fdf397;
/* rgb */ color: rgb(253, 243, 151);
/* oklch */ color: oklch(95.2% 0.114 102.9);
Tailwind
colors: {
  custom: {
    50: '#fff6b7',
    500: '#fdf397',
    950: '#000000',
  },
}
SCSS
$custom: #fdf397;
$custom-light: #fff6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf397",
  "rgb": {
    "r": 253,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 54.118,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.9522,
    "c": 0.11367,
    "h": 102.9
  },
  "luminance": 0.87218
}

Semantic roles & 50–950 ramp

primary
#FDF397
secondary
#5967DF
accent
#16E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FDF397

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

Preview Lab → · Contrast checker → · Palette generator →

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