#F5ED97#F5ED97

#F5ED97 is a very light, moderate yellow. Relative luminance 0.822; OKLCH L 93.4% C 0.107 H 103.7°. Best body text is #000000 at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#F5ED97
RGBrgb(245, 237, 151)
HSLhsl(55, 82%, 78%)
HSVhsv(55, 38%, 96%)
CMYKcmyk(0%, 3.3%, 38.4%, 3.9%)
CIE-LABlab(92.67, -9.41, 42.63)
CIE-LCHlch(92.67, 43.65, 102.45°)
OKLaboklab(93.35% -0.0254 0.1043)
OKLCHoklch(93.35% 0.107 103.7)
XYZxyz(73.5275, 82.2171, 41.2684)
Luminance0.8222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5ED97 #979FF5
analogous
#F5BE97 #F5ED97 #CEF597
triadic
#F5ED97 #97F5ED #ED97F5
tetradic
#F5ED97 #97F5BE #979FF5 #F597CE
square
#F5ED97 #97F5BE #979FF5 #F597CE
split-complementary
#F5ED97 #97CEF5 #BE97F5
monochromatic
#EADA27 #F0E35F #F5ED97 #FAF7CF #FCFAE3

Accessibility & contrast

On white

1.20
#F5ED97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.44
#F5ED97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5ED97
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5ED97#FFFFFF#000000##000000
##F5ED971.001.2017.4417.44
#FFFFFF1.201.0021.0021.00
#00000017.4421.001.001.00
##00000017.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE791
Deuteranopia (green-blind)
#FEEC9A
Tritanopia (blue-blind)
#FFE2D8
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f5ed97;
/* rgb */ color: rgb(245, 237, 151);
/* oklch */ color: oklch(93.4% 0.107 103.7);
Tailwind
colors: {
  custom: {
    50: '#faf2b6',
    500: '#f5ed97',
    950: '#000000',
  },
}
SCSS
$custom: #f5ed97;
$custom-light: #faf2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ed97",
  "rgb": {
    "r": 245,
    "g": 237,
    "b": 151
  },
  "hsl": {
    "h": 54.894,
    "s": 82.456,
    "l": 77.647
  },
  "oklch": {
    "l": 0.93353,
    "c": 0.10732,
    "h": 103.7
  },
  "luminance": 0.82215
}

Semantic roles & 50–950 ramp

primary
#F5ED97
secondary
#5D67D3
accent
#19DF07
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F5ED97

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

Preview Lab → · Contrast checker → · Palette generator →

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