#FDF398#FDF398

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

Color values

HEX#FDF398
RGBrgb(253, 243, 152)
HSLhsl(54, 96%, 79%)
HSVhsv(54, 40%, 99%)
CMYKcmyk(0%, 4%, 39.9%, 0.8%)
CIE-LABlab(94.85, -9.21, 45.04)
CIE-LCHlch(94.85, 45.97, 101.56°)
OKLaboklab(95.24% -0.025 0.1098)
OKLCHoklch(95.24% 0.113 102.9)
XYZxyz(78.2275, 87.2529, 42.4204)
Luminance0.8725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FDF398 #98A2FD
analogous
#FDC198 #FDF398 #D5FD98
triadic
#FDF398 #98FDF3 #F398FD
tetradic
#FDF398 #98FDC1 #98A2FD #FD98D5
square
#FDF398 #98FDC1 #98A2FD #FD98D5
split-complementary
#FDF398 #98D5FD #C198FD
monochromatic
#FBE520 #FCEC5C #FDF398 #FEFAD4 #FEFCE1

Accessibility & contrast

On white

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

On black

18.45
#FDF398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FDF398
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FDF398#FFFFFF#000000##000000
##FDF3981.001.1418.4518.45
#FFFFFF1.141.0021.0021.00
#00000018.4521.001.001.00
##00000018.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED91
Deuteranopia (green-blind)
#FFF39C
Tritanopia (blue-blind)
#FFE8DD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fdf398;
/* rgb */ color: rgb(253, 243, 152);
/* oklch */ color: oklch(95.2% 0.113 102.9);
Tailwind
colors: {
  custom: {
    50: '#fff6b7',
    500: '#fdf398',
    950: '#000000',
  },
}
SCSS
$custom: #fdf398;
$custom-light: #fff6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fdf398",
  "rgb": {
    "r": 253,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 54.059,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.95236,
    "c": 0.11259,
    "h": 102.9
  },
  "luminance": 0.87251
}

Semantic roles & 50–950 ramp

primary
#FDF398
secondary
#5A67DF
accent
#17E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FDF398

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

Preview Lab → · Contrast checker → · Palette generator →

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