#ECD662#ECD662

#ECD662 is a very light, vivid yellow. Relative luminance 0.668; OKLCH L 87.2% C 0.138 H 98.7°. Best body text is #000000 at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#ECD662
RGBrgb(236, 214, 98)
HSLhsl(50, 78%, 65%)
HSVhsv(50, 58%, 93%)
CMYKcmyk(0%, 9.3%, 58.5%, 7.5%)
CIE-LABlab(85.41, -6.18, 58.84)
CIE-LCHlch(85.41, 59.17, 96.00°)
OKLaboklab(87.21% -0.0207 0.1361)
OKLCHoklch(87.21% 0.138 98.7)
XYZxyz(60.8456, 66.8104, 21.2436)
Luminance0.6681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD662 #6278EC
analogous
#EC9162 #ECD662 #BDEC62
triadic
#ECD662 #62ECD6 #D662EC
tetradic
#ECD662 #62EC91 #6278EC #EC62BD
square
#ECD662 #62EC91 #6278EC #EC62BD
split-complementary
#ECD662 #62BDEC #9162EC
monochromatic
#BDA217 #E5C82B #ECD662 #F3E499 #F9F3CF

Accessibility & contrast

On white

1.46
#ECD662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.36
#ECD662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD662
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD662#FFFFFF#000000##000000
##ECD6621.001.4614.3614.36
#FFFFFF1.461.0021.0021.00
#00000014.3621.001.001.00
##00000014.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D156
Deuteranopia (green-blind)
#EED968
Tritanopia (blue-blind)
#FDC8BD
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #ecd662;
/* rgb */ color: rgb(236, 214, 98);
/* oklch */ color: oklch(87.2% 0.138 98.7);
Tailwind
colors: {
  custom: {
    50: '#f5e292',
    500: '#ecd662',
    950: '#000000',
  },
}
SCSS
$custom: #ecd662;
$custom-light: #f5e292;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd662",
  "rgb": {
    "r": 236,
    "g": 214,
    "b": 98
  },
  "hsl": {
    "h": 50.435,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.87211,
    "c": 0.13762,
    "h": 98.7
  },
  "luminance": 0.66808
}

Semantic roles & 50–950 ramp

primary
#ECD662
secondary
#374CBC
accent
#2CDB0B
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD662

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

Preview Lab → · Contrast checker → · Palette generator →

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