#ECD162#ECD162

#ECD162 is a very light, vivid yellow. Relative luminance 0.643; OKLCH L 86.2% C 0.134 H 95.8°. Best body text is #000000 at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#ECD162
RGBrgb(236, 209, 98)
HSLhsl(48, 78%, 65%)
HSVhsv(48, 58%, 93%)
CMYKcmyk(0%, 11.4%, 58.5%, 7.5%)
CIE-LABlab(84.13, -3.64, 57.40)
CIE-LCHlch(84.13, 57.52, 93.63°)
OKLaboklab(86.2% -0.0134 0.133)
OKLCHoklch(86.2% 0.134 95.8)
XYZxyz(59.5996, 64.3184, 20.8283)
Luminance0.6432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD162 #627DEC
analogous
#EC8C62 #ECD162 #C2EC62
triadic
#ECD162 #62ECD1 #D162EC
tetradic
#ECD162 #62EC8C #627DEC #EC62C2
square
#ECD162 #62EC8C #627DEC #EC62C2
split-complementary
#ECD162 #62C2EC #8C62EC
monochromatic
#BD9C17 #E5C12B #ECD162 #F3E199 #F9F1CF

Accessibility & contrast

On white

1.51
#ECD162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.86
#ECD162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD162
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD162#FFFFFF#000000##000000
##ECD1621.001.5113.8613.86
#FFFFFF1.511.0021.0021.00
#00000013.8621.001.001.00
##00000013.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CD57
Deuteranopia (green-blind)
#EBD667
Tritanopia (blue-blind)
#FDC3B8
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #ecd162;
/* rgb */ color: rgb(236, 209, 98);
/* oklch */ color: oklch(86.2% 0.134 95.8);
Tailwind
colors: {
  custom: {
    50: '#f5de92',
    500: '#ecd162',
    950: '#000000',
  },
}
SCSS
$custom: #ecd162;
$custom-light: #f5de92;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd162",
  "rgb": {
    "r": 236,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 48.261,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.862,
    "c": 0.13364,
    "h": 95.8
  },
  "luminance": 0.64316
}

Semantic roles & 50–950 ramp

primary
#ECD162
secondary
#3751BC
accent
#33DB0B
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD162

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

Preview Lab → · Contrast checker → · Palette generator →

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