#F5DC8B#F5DC8B

#F5DC8B is a very light, moderate yellow. Relative luminance 0.725; OKLCH L 89.8% C 0.104 H 92.9°. Best body text is #000000 at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#F5DC8B
RGBrgb(245, 220, 139)
HSLhsl(46, 84%, 75%)
HSVhsv(46, 43%, 96%)
CMYKcmyk(0%, 10.2%, 43.3%, 3.9%)
CIE-LABlab(88.19, -2.11, 42.86)
CIE-LCHlch(88.19, 42.91, 92.81°)
OKLaboklab(89.75% -0.0052 0.1042)
OKLCHoklch(89.75% 0.104 92.9)
XYZxyz(67.9114, 72.4655, 34.8311)
Luminance0.7246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DC8B #8BA4F5
analogous
#F5A78B #F5DC8B #D9F58B
triadic
#F5DC8B #8BF5DC #DC8BF5
tetradic
#F5DC8B #8BF5A7 #8BA4F5 #F58BD9
square
#F5DC8B #8BF5A7 #8BA4F5 #F58BD9
split-complementary
#F5DC8B #8BD9F5 #A78BF5
monochromatic
#EBBA1A #F0CB53 #F5DC8B #FAEDC3 #FDF6E3

Accessibility & contrast

On white

1.36
#F5DC8B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.49
#F5DC8B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DC8B
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DC8B#FFFFFF#000000##000000
##F5DC8B1.001.3615.4915.49
#FFFFFF1.361.0021.0021.00
#00000015.4921.001.001.00
##00000015.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD985
Deuteranopia (green-blind)
#F3E18E
Tritanopia (blue-blind)
#FFD0C8
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f5dc8b;
/* rgb */ color: rgb(245, 220, 139);
/* oklch */ color: oklch(89.8% 0.104 92.9);
Tailwind
colors: {
  custom: {
    50: '#fae6ae',
    500: '#f5dc8b',
    950: '#000000',
  },
}
SCSS
$custom: #f5dc8b;
$custom-light: #fae6ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f5dc8b",
  "rgb": {
    "r": 245,
    "g": 220,
    "b": 139
  },
  "hsl": {
    "h": 45.849,
    "s": 84.127,
    "l": 75.294
  },
  "oklch": {
    "l": 0.89754,
    "c": 0.10435,
    "h": 92.9
  },
  "luminance": 0.72463
}

Semantic roles & 50–950 ramp

primary
#F5DC8B
secondary
#5270D2
accent
#39E105
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#181510
muted
#868481

Preview Lab

Preview with #F5DC8B

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

Preview Lab → · Contrast checker → · Palette generator →

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