#FFEF97#FFEF97

#FFEF97 is a very light, moderate yellow. Relative luminance 0.852; OKLCH L 94.6% C 0.110 H 99.2°. Best body text is #000000 at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#FFEF97
RGBrgb(255, 239, 151)
HSLhsl(51, 100%, 80%)
HSVhsv(51, 41%, 100%)
CMYKcmyk(0%, 6.3%, 40.8%, 0%)
CIE-LABlab(93.98, -6.56, 44.46)
CIE-LCHlch(93.98, 44.94, 98.39°)
OKLaboklab(94.59% -0.0176 0.1084)
OKLCHoklch(94.59% 0.11 99.2)
XYZxyz(77.6941, 85.2298, 41.6305)
Luminance0.8523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEF97 #97A7FF
analogous
#FFBB97 #FFEF97 #DBFF97
triadic
#FFEF97 #97FFEF #EF97FF
tetradic
#FFEF97 #97FFBB #97A7FF #FF97DB
square
#FFEF97 #97FFBB #97A7FF #FF97DB
split-complementary
#FFEF97 #97DBFF #BB97FF
monochromatic
#FFDC1D #FFE65A #FFEF97 #FFF8D4 #FFFAE0

Accessibility & contrast

On white

1.16
#FFEF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.05
#FFEF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEF97
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEF97#FFFFFF#000000##000000
##FFEF971.001.1618.0518.05
#FFFFFF1.161.0021.0021.00
#00000018.0521.001.001.00
##00000018.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA90
Deuteranopia (green-blind)
#FFF09A
Tritanopia (blue-blind)
#FFE3D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #ffef97;
/* rgb */ color: rgb(255, 239, 151);
/* oklch */ color: oklch(94.6% 0.110 99.2);
Tailwind
colors: {
  custom: {
    50: '#fff4b7',
    500: '#ffef97',
    950: '#000000',
  },
}
SCSS
$custom: #ffef97;
$custom-light: #fff4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ffef97",
  "rgb": {
    "r": 255,
    "g": 239,
    "b": 151
  },
  "hsl": {
    "h": 50.769,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.94586,
    "c": 0.1098,
    "h": 99.2
  },
  "luminance": 0.85227
}

Semantic roles & 50–950 ramp

primary
#FFEF97
secondary
#596EE2
accent
#23E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFEF97

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

Preview Lab → · Contrast checker → · Palette generator →

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