#F5EF97#F5EF97

#F5EF97 is a very light, moderate yellow. Relative luminance 0.834; OKLCH L 93.8% C 0.109 H 104.9°. Best body text is #000000 at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#F5EF97
RGBrgb(245, 239, 151)
HSLhsl(56, 82%, 78%)
HSVhsv(56, 38%, 96%)
CMYKcmyk(0%, 2.4%, 38.4%, 3.9%)
CIE-LABlab(93.18, -10.41, 43.28)
CIE-LCHlch(93.18, 44.51, 103.52°)
OKLaboklab(93.76% -0.0282 0.1058)
OKLCHoklch(93.76% 0.109 104.9)
XYZxyz(74.1098, 83.3816, 41.4625)
Luminance0.8338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5EF97 #979DF5
analogous
#F5C097 #F5EF97 #CCF597
triadic
#F5EF97 #97F5EF #EF97F5
tetradic
#F5EF97 #97F5C0 #979DF5 #F597CC
square
#F5EF97 #97F5C0 #979DF5 #F597CC
split-complementary
#F5EF97 #97CCF5 #C097F5
monochromatic
#EADE27 #F0E65F #F5EF97 #FAF8CF #FCFBE3

Accessibility & contrast

On white

1.19
#F5EF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.68
#F5EF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5EF97
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5EF97#FFFFFF#000000##000000
##F5EF971.001.1917.6817.68
#FFFFFF1.191.0021.0021.00
#00000017.6821.001.001.00
##00000017.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE990
Deuteranopia (green-blind)
#FFED9B
Tritanopia (blue-blind)
#FFE4D9
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f5ef97;
/* rgb */ color: rgb(245, 239, 151);
/* oklch */ color: oklch(93.8% 0.109 104.9);
Tailwind
colors: {
  custom: {
    50: '#faf4b6',
    500: '#f5ef97',
    950: '#000000',
  },
}
SCSS
$custom: #f5ef97;
$custom-light: #faf4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ef97",
  "rgb": {
    "r": 245,
    "g": 239,
    "b": 151
  },
  "hsl": {
    "h": 56.17,
    "s": 82.456,
    "l": 77.647
  },
  "oklch": {
    "l": 0.93758,
    "c": 0.10947,
    "h": 104.9
  },
  "luminance": 0.8338
}

Semantic roles & 50–950 ramp

primary
#F5EF97
secondary
#5D64D3
accent
#14DF07
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F5EF97

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

Preview Lab → · Contrast checker → · Palette generator →

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