#ECD97B#ECD97B

#ECD97B is a very light, moderate yellow. Relative luminance 0.689; OKLCH L 88.1% C 0.117 H 98.2°. Best body text is #000000 at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#ECD97B
RGBrgb(236, 217, 123)
HSLhsl(50, 75%, 70%)
HSVhsv(50, 48%, 93%)
CMYKcmyk(0%, 8.1%, 47.9%, 7.5%)
CIE-LABlab(86.45, -5.69, 48.38)
CIE-LCHlch(86.45, 48.71, 96.70°)
OKLaboklab(88.13% -0.0166 0.1157)
OKLCHoklch(88.13% 0.117 98.2)
XYZxyz(62.9819, 68.8909, 28.7147)
Luminance0.6889 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD97B #7B8EEC
analogous
#ECA17B #ECD97B #C6EC7B
triadic
#ECD97B #7BECD9 #D97BEC
tetradic
#ECD97B #7BECA1 #7B8EEC #EC7BC6
square
#ECD97B #7BECA1 #7B8EEC #EC7BC6
split-complementary
#ECD97B #7BC6EC #A17BEC
monochromatic
#CFB11E #E4CA46 #ECD97B #F4E8B0 #FBF7E4

Accessibility & contrast

On white

1.42
#ECD97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.78
#ECD97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD97B
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD97B#FFFFFF#000000##000000
##ECD97B1.001.4214.7814.78
#FFFFFF1.421.0021.0021.00
#00000014.7821.001.001.00
##00000014.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D473
Deuteranopia (green-blind)
#EFDB7F
Tritanopia (blue-blind)
#FBCDC3
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd97b;
/* rgb */ color: rgb(236, 217, 123);
/* oklch */ color: oklch(88.1% 0.117 98.2);
Tailwind
colors: {
  custom: {
    50: '#f4e4a3',
    500: '#ecd97b',
    950: '#000000',
  },
}
SCSS
$custom: #ecd97b;
$custom-light: #f4e4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd97b",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 49.912,
    "s": 74.834,
    "l": 70.392
  },
  "oklch": {
    "l": 0.88125,
    "c": 0.11689,
    "h": 98.2
  },
  "luminance": 0.68889
}

Semantic roles & 50–950 ramp

primary
#ECD97B
secondary
#465BC5
accent
#30D70F
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD97B

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

Preview Lab → · Contrast checker → · Palette generator →

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