#F5EC8D#F5EC8D

#F5EC8D is a very light, moderate yellow. Relative luminance 0.813; OKLCH L 93.0% C 0.117 H 103.7°. Best body text is #000000 at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#F5EC8D
RGBrgb(245, 236, 141)
HSLhsl(55, 84%, 76%)
HSVhsv(55, 42%, 96%)
CMYKcmyk(0%, 3.7%, 42.4%, 3.9%)
CIE-LABlab(92.28, -9.95, 47.03)
CIE-LCHlch(92.28, 48.07, 101.95°)
OKLaboklab(93% -0.0277 0.1138)
OKLCHoklch(93% 0.117 103.7)
XYZxyz(72.4608, 81.3285, 37.0751)
Luminance0.8133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5EC8D #8D96F5
analogous
#F5B88D #F5EC8D #CAF58D
triadic
#F5EC8D #8DF5EC #EC8DF5
tetradic
#F5EC8D #8DF5B8 #8D96F5 #F58DCA
square
#F5EC8D #8DF5B8 #8D96F5 #F58DCA
split-complementary
#F5EC8D #8DCAF5 #B88DF5
monochromatic
#EBD91C #F0E355 #F5EC8D #FAF5C5 #FDFAE3

Accessibility & contrast

On white

1.22
#F5EC8D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.27
#F5EC8D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5EC8D
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5EC8D#FFFFFF#000000##000000
##F5EC8D1.001.2217.2717.27
#FFFFFF1.221.0021.0021.00
#00000017.2721.001.001.00
##00000017.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE685
Deuteranopia (green-blind)
#FFEB91
Tritanopia (blue-blind)
#FFE0D5
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f5ec8d;
/* rgb */ color: rgb(245, 236, 141);
/* oklch */ color: oklch(93.0% 0.117 103.7);
Tailwind
colors: {
  custom: {
    50: '#faf2b0',
    500: '#f5ec8d',
    950: '#000000',
  },
}
SCSS
$custom: #f5ec8d;
$custom-light: #faf2b0;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ec8d",
  "rgb": {
    "r": 245,
    "g": 236,
    "b": 141
  },
  "hsl": {
    "h": 54.808,
    "s": 83.871,
    "l": 75.686
  },
  "oklch": {
    "l": 0.92997,
    "c": 0.11708,
    "h": 103.7
  },
  "luminance": 0.81326
}

Semantic roles & 50–950 ramp

primary
#F5EC8D
secondary
#545FD2
accent
#18E005
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F5EC8D

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

Preview Lab → · Contrast checker → · Palette generator →

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