#F5DF8A#F5DF8A

#F5DF8A is a very light, moderate yellow. Relative luminance 0.740; OKLCH L 90.3% C 0.108 H 95.3°. Best body text is #000000 at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#F5DF8A
RGBrgb(245, 223, 138)
HSLhsl(48, 84%, 75%)
HSVhsv(48, 44%, 96%)
CMYKcmyk(0%, 9%, 43.7%, 3.9%)
CIE-LABlab(88.93, -3.73, 44.29)
CIE-LCHlch(88.93, 44.45, 94.81°)
OKLaboklab(90.34% -0.01 0.1074)
OKLCHoklch(90.34% 0.108 95.3)
XYZxyz(68.6331, 74.0253, 34.7129)
Luminance0.7402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DF8A #8AA0F5
analogous
#F5AA8A #F5DF8A #D5F58A
triadic
#F5DF8A #8AF5DF #DF8AF5
tetradic
#F5DF8A #8AF5AA #8AA0F5 #F58AD5
square
#F5DF8A #8AF5AA #8AA0F5 #F58AD5
split-complementary
#F5DF8A #8AD5F5 #AA8AF5
monochromatic
#EBC019 #F0D052 #F5DF8A #FAEEC2 #FDF7E3

Accessibility & contrast

On white

1.33
#F5DF8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.80
#F5DF8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DF8A
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DF8A#FFFFFF#000000##000000
##F5DF8A1.001.3315.8015.80
#FFFFFF1.331.0021.0021.00
#00000015.8021.001.001.00
##00000015.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFDB83
Deuteranopia (green-blind)
#F5E28D
Tritanopia (blue-blind)
#FFD3CA
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f5df8a;
/* rgb */ color: rgb(245, 223, 138);
/* oklch */ color: oklch(90.3% 0.108 95.3);
Tailwind
colors: {
  custom: {
    50: '#fae8ad',
    500: '#f5df8a',
    950: '#000000',
  },
}
SCSS
$custom: #f5df8a;
$custom-light: #fae8ad;
$custom-dark: #000000;
JSON
{
  "hex": "#f5df8a",
  "rgb": {
    "r": 245,
    "g": 223,
    "b": 138
  },
  "hsl": {
    "h": 47.664,
    "s": 84.252,
    "l": 75.098
  },
  "oklch": {
    "l": 0.90336,
    "c": 0.10789,
    "h": 95.3
  },
  "luminance": 0.74023
}

Semantic roles & 50–950 ramp

primary
#F5DF8A
secondary
#516CD2
accent
#32E105
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#181610
muted
#868481

Preview Lab

Preview with #F5DF8A

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

Preview Lab → · Contrast checker → · Palette generator →

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