#ECD797#ECD797

#ECD797 is a very light, moderate yellow. Relative luminance 0.687; OKLCH L 88.2% C 0.085 H 92.0°. Best body text is #000000 at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#ECD797
RGBrgb(236, 215, 151)
HSLhsl(45, 69%, 76%)
HSVhsv(45, 36%, 93%)
CMYKcmyk(0%, 8.9%, 36%, 7.5%)
CIE-LABlab(86.34, -1.79, 34.26)
CIE-LCHlch(86.34, 34.30, 92.98°)
OKLaboklab(88.17% -0.003 0.085)
OKLCHoklch(88.17% 0.085 92)
XYZxyz(64.4796, 68.6702, 39.1303)
Luminance0.6867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD797 #97ACEC
analogous
#ECAC97 #ECD797 #D7EC97
triadic
#ECD797 #97ECD7 #D797EC
tetradic
#ECD797 #97ECAC #97ACEC #EC97D7
square
#ECD797 #97ECAC #97ACEC #EC97D7
split-complementary
#ECD797 #97D7EC #AC97EC
monochromatic
#D9AF30 #E3C363 #ECD797 #F5EBCB #FAF5E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECD797#FFFFFF#000000##000000
##ECD7971.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)
#E4D493
Deuteranopia (green-blind)
#EADB99
Tritanopia (blue-blind)
#F9CDC6
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd797;
/* rgb */ color: rgb(236, 215, 151);
/* oklch */ color: oklch(88.2% 0.085 92.0);
Tailwind
colors: {
  custom: {
    50: '#f3e3b6',
    500: '#ecd797',
    950: '#000000',
  },
}
SCSS
$custom: #ecd797;
$custom-light: #f3e3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd797",
  "rgb": {
    "r": 236,
    "g": 215,
    "b": 151
  },
  "hsl": {
    "h": 45.176,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.88168,
    "c": 0.08503,
    "h": 92
  },
  "luminance": 0.68668
}

Semantic roles & 50–950 ramp

primary
#ECD797
secondary
#6079C8
accent
#43D114
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171511
muted
#858481

Preview Lab

Preview with #ECD797

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

Preview Lab → · Contrast checker → · Palette generator →

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