#ECD962#ECD962

#ECD962 is a very light, vivid yellow. Relative luminance 0.683; OKLCH L 87.8% C 0.140 H 100.3°. Best body text is #000000 at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#ECD962
RGBrgb(236, 217, 98)
HSLhsl(52, 78%, 65%)
HSVhsv(52, 58%, 93%)
CMYKcmyk(0%, 8.1%, 58.5%, 7.5%)
CIE-LABlab(86.18, -7.70, 59.71)
CIE-LCHlch(86.18, 60.20, 97.34°)
OKLaboklab(87.82% -0.0251 0.1379)
OKLCHoklch(87.82% 0.14 100.3)
XYZxyz(61.6118, 68.3429, 21.4990)
Luminance0.6834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD962 #6275EC
analogous
#EC9462 #ECD962 #BAEC62
triadic
#ECD962 #62ECD9 #D962EC
tetradic
#ECD962 #62EC94 #6275EC #EC62BA
square
#ECD962 #62EC94 #6275EC #EC62BA
split-complementary
#ECD962 #62BAEC #9462EC
monochromatic
#BDA617 #E5CC2B #ECD962 #F3E699 #F9F3CF

Accessibility & contrast

On white

1.43
#ECD962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.67
#ECD962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD962
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD962#FFFFFF#000000##000000
##ECD9621.001.4314.6714.67
#FFFFFF1.431.0021.0021.00
#00000014.6721.001.001.00
##00000014.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD355
Deuteranopia (green-blind)
#F1DB68
Tritanopia (blue-blind)
#FDCBBF
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd962;
/* rgb */ color: rgb(236, 217, 98);
/* oklch */ color: oklch(87.8% 0.140 100.3);
Tailwind
colors: {
  custom: {
    50: '#f5e493',
    500: '#ecd962',
    950: '#000000',
  },
}
SCSS
$custom: #ecd962;
$custom-light: #f5e493;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd962",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 51.739,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.87821,
    "c": 0.14017,
    "h": 100.3
  },
  "luminance": 0.6834
}

Semantic roles & 50–950 ramp

primary
#ECD962
secondary
#3749BC
accent
#27DB0B
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD962

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

Preview Lab → · Contrast checker → · Palette generator →

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