#ECD862#ECD862

#ECD862 is a very light, vivid yellow. Relative luminance 0.678; OKLCH L 87.6% C 0.139 H 99.8°. Best body text is #000000 at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#ECD862
RGBrgb(236, 216, 98)
HSLhsl(51, 78%, 65%)
HSVhsv(51, 58%, 93%)
CMYKcmyk(0%, 8.5%, 58.5%, 7.5%)
CIE-LABlab(85.92, -7.19, 59.42)
CIE-LCHlch(85.92, 59.85, 96.90°)
OKLaboklab(87.62% -0.0236 0.1373)
OKLCHoklch(87.62% 0.139 99.8)
XYZxyz(61.3549, 67.8290, 21.4134)
Luminance0.6783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD862 #6276EC
analogous
#EC9362 #ECD862 #BBEC62
triadic
#ECD862 #62ECD8 #D862EC
tetradic
#ECD862 #62EC93 #6276EC #EC62BB
square
#ECD862 #62EC93 #6276EC #EC62BB
split-complementary
#ECD862 #62BBEC #9362EC
monochromatic
#BDA517 #E5CA2B #ECD862 #F3E699 #F9F3CF

Accessibility & contrast

On white

1.44
#ECD862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.57
#ECD862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD862
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD862#FFFFFF#000000##000000
##ECD8621.001.4414.5714.57
#FFFFFF1.441.0021.0021.00
#00000014.5721.001.001.00
##00000014.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD356
Deuteranopia (green-blind)
#F0DA68
Tritanopia (blue-blind)
#FDCABE
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #ecd862;
/* rgb */ color: rgb(236, 216, 98);
/* oklch */ color: oklch(87.6% 0.139 99.8);
Tailwind
colors: {
  custom: {
    50: '#f5e393',
    500: '#ecd862',
    950: '#000000',
  },
}
SCSS
$custom: #ecd862;
$custom-light: #f5e393;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd862",
  "rgb": {
    "r": 236,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 51.304,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.87617,
    "c": 0.1393,
    "h": 99.8
  },
  "luminance": 0.67826
}

Semantic roles & 50–950 ramp

primary
#ECD862
secondary
#374ABC
accent
#29DB0B
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD862

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

Preview Lab → · Contrast checker → · Palette generator →

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