#FFEF98#FFEF98

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

Color values

HEX#FFEF98
RGBrgb(255, 239, 152)
HSLhsl(51, 100%, 80%)
HSVhsv(51, 40%, 100%)
CMYKcmyk(0%, 6.3%, 40.4%, 0%)
CIE-LABlab(94.00, -6.45, 43.99)
CIE-LCHlch(94.00, 44.46, 98.34°)
OKLaboklab(94.6% -0.0172 0.1074)
OKLCHoklch(94.6% 0.109 99.1)
XYZxyz(77.7756, 85.2624, 42.0600)
Luminance0.8526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEF98 #98A8FF
analogous
#FFBC98 #FFEF98 #DBFF98
triadic
#FFEF98 #98FFEF #EF98FF
tetradic
#FFEF98 #98FFBC #98A8FF #FF98DB
square
#FFEF98 #98FFBC #98A8FF #FF98DB
split-complementary
#FFEF98 #98DBFF #BC98FF
monochromatic
#FFDC1E #FFE55B #FFEF98 #FFF9D5 #FFFAE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FFEF98#FFFFFF#000000##000000
##FFEF981.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)
#FFEA91
Deuteranopia (green-blind)
#FFF09B
Tritanopia (blue-blind)
#FFE3D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #ffef98;
/* rgb */ color: rgb(255, 239, 152);
/* oklch */ color: oklch(94.6% 0.109 99.1);
Tailwind
colors: {
  custom: {
    50: '#fff4b7',
    500: '#ffef98',
    950: '#000000',
  },
}
SCSS
$custom: #ffef98;
$custom-light: #fff4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ffef98",
  "rgb": {
    "r": 255,
    "g": 239,
    "b": 152
  },
  "hsl": {
    "h": 50.68,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.94602,
    "c": 0.10873,
    "h": 99.1
  },
  "luminance": 0.8526
}

Semantic roles & 50–950 ramp

primary
#FFEF98
secondary
#596FE2
accent
#24E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFEF98

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

Preview Lab → · Contrast checker → · Palette generator →

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