#ECD98B#ECD98B

#ECD98B is a very light, moderate yellow. Relative luminance 0.693; OKLCH L 88.4% C 0.100 H 96.1°. Best body text is #000000 at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#ECD98B
RGBrgb(236, 217, 139)
HSLhsl(48, 72%, 74%)
HSVhsv(48, 41%, 93%)
CMYKcmyk(0%, 8.1%, 41.1%, 7.5%)
CIE-LABlab(86.66, -4.12, 40.76)
CIE-LCHlch(86.66, 40.96, 95.78°)
OKLaboklab(88.36% -0.0106 0.0995)
OKLCHoklch(88.36% 0.1 96.1)
XYZxyz(64.0666, 69.3248, 34.4273)
Luminance0.6932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD98B #8B9EEC
analogous
#ECA88B #ECD98B #CEEC8B
triadic
#ECD98B #8BECD9 #D98BEC
tetradic
#ECD98B #8BECA8 #8B9EEC #EC8BCE
square
#ECD98B #8BECA8 #8B9EEC #EC8BCE
split-complementary
#ECD98B #8BCEEC #A88BEC
monochromatic
#D9B524 #E3C856 #ECD98B #F5EAC0 #FBF6E5

Accessibility & contrast

On white

1.41
#ECD98B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.86
#ECD98B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD98B
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD98B#FFFFFF#000000##000000
##ECD98B1.001.4114.8614.86
#FFFFFF1.411.0021.0021.00
#00000014.8621.001.001.00
##00000014.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D585
Deuteranopia (green-blind)
#EDDC8E
Tritanopia (blue-blind)
#FACEC6
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #ecd98b;
/* rgb */ color: rgb(236, 217, 139);
/* oklch */ color: oklch(88.4% 0.100 96.1);
Tailwind
colors: {
  custom: {
    50: '#f3e4ae',
    500: '#ecd98b',
    950: '#000000',
  },
}
SCSS
$custom: #ecd98b;
$custom-light: #f3e4ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd98b",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 139
  },
  "hsl": {
    "h": 48.247,
    "s": 71.852,
    "l": 73.529
  },
  "oklch": {
    "l": 0.88364,
    "c": 0.10009,
    "h": 96.1
  },
  "luminance": 0.69323
}

Semantic roles & 50–950 ramp

primary
#ECD98B
secondary
#556BC7
accent
#38D412
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #ECD98B

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

Preview Lab → · Contrast checker → · Palette generator →

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