#FFEC98#FFEC98

#FFEC98 is a very light, moderate yellow. Relative luminance 0.835; OKLCH L 94.0% C 0.106 H 97.0°. Best body text is #000000 at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#FFEC98
RGBrgb(255, 236, 152)
HSLhsl(49, 100%, 80%)
HSVhsv(49, 40%, 100%)
CMYKcmyk(0%, 7.5%, 40.4%, 0%)
CIE-LABlab(93.24, -4.95, 43.03)
CIE-LCHlch(93.24, 43.31, 96.57°)
OKLaboklab(94.01% -0.0129 0.1052)
OKLCHoklch(94.01% 0.106 97)
XYZxyz(76.9046, 83.5204, 41.7697)
Luminance0.8352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC98 #98ABFF
analogous
#FFB998 #FFEC98 #DFFF98
triadic
#FFEC98 #98FFEC #EC98FF
tetradic
#FFEC98 #98FFB9 #98ABFF #FF98DF
square
#FFEC98 #98FFB9 #98ABFF #FF98DF
split-complementary
#FFEC98 #98DFFF #B998FF
monochromatic
#FFD51E #FFE15B #FFEC98 #FFF7D5 #FFF9E0

Accessibility & contrast

On white

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

On black

17.70
#FFEC98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC98
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC98#FFFFFF#000000##000000
##FFEC981.001.1917.7017.70
#FFFFFF1.191.0021.0021.00
#00000017.7021.001.001.00
##00000017.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE892
Deuteranopia (green-blind)
#FFEE9B
Tritanopia (blue-blind)
#FFE0D7
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #ffec98;
/* rgb */ color: rgb(255, 236, 152);
/* oklch */ color: oklch(94.0% 0.106 97.0);
Tailwind
colors: {
  custom: {
    50: '#fff2b7',
    500: '#ffec98',
    950: '#000000',
  },
}
SCSS
$custom: #ffec98;
$custom-light: #fff2b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec98",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 152
  },
  "hsl": {
    "h": 48.932,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.94005,
    "c": 0.10594,
    "h": 97
  },
  "luminance": 0.83518
}

Semantic roles & 50–950 ramp

primary
#FFEC98
secondary
#5973E2
accent
#2AE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FFEC98

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

Preview Lab → · Contrast checker → · Palette generator →

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