#ECD562#ECD562

#ECD562 is a very light, vivid yellow. Relative luminance 0.663; OKLCH L 87.0% C 0.137 H 98.1°. Best body text is #000000 at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#ECD562
RGBrgb(236, 213, 98)
HSLhsl(50, 78%, 65%)
HSVhsv(50, 58%, 93%)
CMYKcmyk(0%, 9.7%, 58.5%, 7.5%)
CIE-LABlab(85.15, -5.67, 58.55)
CIE-LCHlch(85.15, 58.83, 95.53°)
OKLaboklab(87.01% -0.0193 0.1354)
OKLCHoklch(87.01% 0.137 98.1)
XYZxyz(60.5933, 66.3058, 21.1595)
Luminance0.6630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD562 #6279EC
analogous
#EC9062 #ECD562 #BEEC62
triadic
#ECD562 #62ECD5 #D562EC
tetradic
#ECD562 #62EC90 #6279EC #EC62BE
square
#ECD562 #62EC90 #6279EC #EC62BE
split-complementary
#ECD562 #62BEEC #9062EC
monochromatic
#BDA117 #E5C62B #ECD562 #F3E499 #F9F2CF

Accessibility & contrast

On white

1.47
#ECD562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.26
#ECD562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD562
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD562#FFFFFF#000000##000000
##ECD5621.001.4714.2614.26
#FFFFFF1.471.0021.0021.00
#00000014.2621.001.001.00
##00000014.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D056
Deuteranopia (green-blind)
#EED867
Tritanopia (blue-blind)
#FDC7BC
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #ecd562;
/* rgb */ color: rgb(236, 213, 98);
/* oklch */ color: oklch(87.0% 0.137 98.1);
Tailwind
colors: {
  custom: {
    50: '#f5e192',
    500: '#ecd562',
    950: '#000000',
  },
}
SCSS
$custom: #ecd562;
$custom-light: #f5e192;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd562",
  "rgb": {
    "r": 236,
    "g": 213,
    "b": 98
  },
  "hsl": {
    "h": 50,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.87008,
    "c": 0.1368,
    "h": 98.1
  },
  "luminance": 0.66303
}

Semantic roles & 50–950 ramp

primary
#ECD562
secondary
#374DBC
accent
#2DDB0B
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD562

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

Preview Lab → · Contrast checker → · Palette generator →

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