#ECD796#ECD796

#ECD796 is a very light, moderate yellow. Relative luminance 0.686; OKLCH L 88.1% C 0.086 H 92.3°. Best body text is #000000 at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#ECD796
RGBrgb(236, 215, 150)
HSLhsl(45, 69%, 76%)
HSVhsv(45, 36%, 93%)
CMYKcmyk(0%, 8.9%, 36.4%, 7.5%)
CIE-LABlab(86.32, -1.90, 34.75)
CIE-LCHlch(86.32, 34.80, 93.13°)
OKLaboklab(88.15% -0.0034 0.0861)
OKLCHoklch(88.15% 0.086 92.3)
XYZxyz(64.3987, 68.6379, 38.7044)
Luminance0.6864 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD796 #96ABEC
analogous
#ECAC96 #ECD796 #D6EC96
triadic
#ECD796 #96ECD7 #D796EC
tetradic
#ECD796 #96ECAC #96ABEC #EC96D6
square
#ECD796 #96ECAC #96ABEC #EC96D6
split-complementary
#ECD796 #96D6EC #AC96EC
monochromatic
#D9B02E #E3C362 #ECD796 #F5EBCA #FAF5E5

Accessibility & contrast

On white

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

On black

14.73
#ECD796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD796
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD796#FFFFFF#000000##000000
##ECD7961.001.4314.7314.73
#FFFFFF1.431.0021.0021.00
#00000014.7321.001.001.00
##00000014.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D491
Deuteranopia (green-blind)
#EADB98
Tritanopia (blue-blind)
#F9CDC6
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd796;
/* rgb */ color: rgb(236, 215, 150);
/* oklch */ color: oklch(88.1% 0.086 92.3);
Tailwind
colors: {
  custom: {
    50: '#f3e3b5',
    500: '#ecd796',
    950: '#000000',
  },
}
SCSS
$custom: #ecd796;
$custom-light: #f3e3b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd796",
  "rgb": {
    "r": 236,
    "g": 215,
    "b": 150
  },
  "hsl": {
    "h": 45.349,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.8815,
    "c": 0.08616,
    "h": 92.3
  },
  "luminance": 0.68636
}

Semantic roles & 50–950 ramp

primary
#ECD796
secondary
#5F78C7
accent
#42D114
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171511
muted
#858481

Preview Lab

Preview with #ECD796

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

Preview Lab → · Contrast checker → · Palette generator →

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