#F5ED8A#F5ED8A

#F5ED8A is a very light, vivid yellow. Relative luminance 0.818; OKLCH L 93.2% C 0.121 H 104.4°. Best body text is #000000 at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#F5ED8A
RGBrgb(245, 237, 138)
HSLhsl(56, 84%, 75%)
HSVhsv(56, 44%, 96%)
CMYKcmyk(0%, 3.3%, 43.7%, 3.9%)
CIE-LABlab(92.49, -10.74, 48.75)
CIE-LCHlch(92.49, 49.92, 102.43°)
OKLaboklab(93.16% -0.0302 0.1174)
OKLCHoklch(93.16% 0.121 104.4)
XYZxyz(72.5294, 81.8178, 36.0116)
Luminance0.8182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5ED8A #8A92F5
analogous
#F5B78A #F5ED8A #C7F58A
triadic
#F5ED8A #8AF5ED #ED8AF5
tetradic
#F5ED8A #8AF5B7 #8A92F5 #F58AC7
square
#F5ED8A #8AF5B7 #8A92F5 #F58AC7
split-complementary
#F5ED8A #8AC7F5 #B78AF5
monochromatic
#EBDC19 #F0E452 #F5ED8A #FAF6C2 #FDFBE3

Accessibility & contrast

On white

1.21
#F5ED8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.36
#F5ED8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5ED8A
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5ED8A#FFFFFF#000000##000000
##F5ED8A1.001.2117.3617.36
#FFFFFF1.211.0021.0021.00
#00000017.3621.001.001.00
##00000017.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE782
Deuteranopia (green-blind)
#FFEC8E
Tritanopia (blue-blind)
#FFE1D5
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f5ed8a;
/* rgb */ color: rgb(245, 237, 138);
/* oklch */ color: oklch(93.2% 0.121 104.4);
Tailwind
colors: {
  custom: {
    50: '#faf2ae',
    500: '#f5ed8a',
    950: '#000000',
  },
}
SCSS
$custom: #f5ed8a;
$custom-light: #faf2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ed8a",
  "rgb": {
    "r": 245,
    "g": 237,
    "b": 138
  },
  "hsl": {
    "h": 55.514,
    "s": 84.252,
    "l": 75.098
  },
  "oklch": {
    "l": 0.93156,
    "c": 0.12126,
    "h": 104.4
  },
  "luminance": 0.81816
}

Semantic roles & 50–950 ramp

primary
#F5ED8A
secondary
#515BD2
accent
#15E105
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F5ED8A

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

Preview Lab → · Contrast checker → · Palette generator →

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