#F5DF8B#F5DF8B

#F5DF8B is a very light, moderate yellow. Relative luminance 0.741; OKLCH L 90.4% C 0.107 H 95.2°. Best body text is #000000 at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#F5DF8B
RGBrgb(245, 223, 139)
HSLhsl(48, 84%, 75%)
HSVhsv(48, 43%, 96%)
CMYKcmyk(0%, 9%, 43.3%, 3.9%)
CIE-LABlab(88.95, -3.63, 43.82)
CIE-LCHlch(88.95, 43.97, 94.74°)
OKLaboklab(90.35% -0.0096 0.1064)
OKLCHoklch(90.35% 0.107 95.2)
XYZxyz(68.7058, 74.0544, 35.0959)
Luminance0.7405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DF8B #8BA1F5
analogous
#F5AA8B #F5DF8B #D6F58B
triadic
#F5DF8B #8BF5DF #DF8BF5
tetradic
#F5DF8B #8BF5AA #8BA1F5 #F58BD6
square
#F5DF8B #8BF5AA #8BA1F5 #F58BD6
split-complementary
#F5DF8B #8BD6F5 #AA8BF5
monochromatic
#EBC01A #F0CF53 #F5DF8B #FAEFC3 #FDF7E3

Accessibility & contrast

On white

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

On black

15.81
#F5DF8B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DF8B
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DF8B#FFFFFF#000000##000000
##F5DF8B1.001.3315.8115.81
#FFFFFF1.331.0021.0021.00
#00000015.8121.001.001.00
##00000015.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5df8b;
/* rgb */ color: rgb(245, 223, 139);
/* oklch */ color: oklch(90.4% 0.107 95.2);
Tailwind
colors: {
  custom: {
    50: '#fae8ae',
    500: '#f5df8b',
    950: '#000000',
  },
}
SCSS
$custom: #f5df8b;
$custom-light: #fae8ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f5df8b",
  "rgb": {
    "r": 245,
    "g": 223,
    "b": 139
  },
  "hsl": {
    "h": 47.547,
    "s": 84.127,
    "l": 75.294
  },
  "oklch": {
    "l": 0.90351,
    "c": 0.10682,
    "h": 95.2
  },
  "luminance": 0.74052
}

Semantic roles & 50–950 ramp

primary
#F5DF8B
secondary
#526DD2
accent
#33E105
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#181610
muted
#868481

Preview Lab

Preview with #F5DF8B

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

Preview Lab → · Contrast checker → · Palette generator →

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