#ECE98D#ECE98D

#ECE98D is a very light, moderate yellow. Relative luminance 0.780; OKLCH L 91.6% C 0.114 H 106.8°. Best body text is #000000 at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#ECE98D
RGBrgb(236, 233, 141)
HSLhsl(58, 71%, 74%)
HSVhsv(58, 40%, 93%)
CMYKcmyk(0%, 1.3%, 40.3%, 7.5%)
CIE-LABlab(90.80, -11.96, 45.01)
CIE-LCHlch(90.80, 46.57, 104.88°)
OKLaboklab(91.65% -0.0331 0.1093)
OKLCHoklch(91.65% 0.114 106.8)
XYZxyz(68.5398, 78.0353, 36.6459)
Luminance0.7803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECE98D #8D90EC
analogous
#ECBA8D #ECE98D #C0EC8D
triadic
#ECE98D #8DECE9 #E98DEC
tetradic
#ECE98D #8DECBA #8D90EC #EC8DC0
square
#ECE98D #8DECBA #8D90EC #EC8DC0
split-complementary
#ECE98D #8DC0EC #BA8DEC
monochromatic
#DAD424 #E3DF59 #ECE98D #F5F3C1 #FBFAE5

Accessibility & contrast

On white

1.26
#ECE98D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.61
#ECE98D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECE98D
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECE98D#FFFFFF#000000##000000
##ECE98D1.001.2616.6116.61
#FFFFFF1.261.0021.0021.00
#00000016.6121.001.001.00
##00000016.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7E286
Deuteranopia (green-blind)
#F9E791
Tritanopia (blue-blind)
#F8DED3
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #ece98d;
/* rgb */ color: rgb(236, 233, 141);
/* oklch */ color: oklch(91.6% 0.114 106.8);
Tailwind
colors: {
  custom: {
    50: '#f3efaf',
    500: '#ece98d',
    950: '#000000',
  },
}
SCSS
$custom: #ece98d;
$custom-light: #f3efaf;
$custom-dark: #000000;
JSON
{
  "hex": "#ece98d",
  "rgb": {
    "r": 236,
    "g": 233,
    "b": 141
  },
  "hsl": {
    "h": 58.105,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.91648,
    "c": 0.11418,
    "h": 106.8
  },
  "luminance": 0.78034
}

Semantic roles & 50–950 ramp

primary
#ECE98D
secondary
#565AC7
accent
#18D312
background
#FFFFFD
surface
#FEFEF7
border
#D6D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #ECE98D

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

Preview Lab → · Contrast checker → · Palette generator →

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