#ECD798#ECD798

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

Color values

HEX#ECD798
RGBrgb(236, 215, 152)
HSLhsl(45, 69%, 76%)
HSVhsv(45, 36%, 93%)
CMYKcmyk(0%, 8.9%, 35.6%, 7.5%)
CIE-LABlab(86.36, -1.67, 33.76)
CIE-LCHlch(86.36, 33.81, 92.83°)
OKLaboklab(88.19% -0.0026 0.0839)
OKLCHoklch(88.19% 0.084 91.8)
XYZxyz(64.5612, 68.7028, 39.5598)
Luminance0.6870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD798 #98ADEC
analogous
#ECAD98 #ECD798 #D7EC98
triadic
#ECD798 #98ECD7 #D798EC
tetradic
#ECD798 #98ECAD #98ADEC #EC98D7
square
#ECD798 #98ECAD #98ADEC #EC98D7
split-complementary
#ECD798 #98D7EC #AD98EC
monochromatic
#D9AF31 #E2C364 #ECD798 #F6EBCC #FAF5E5

Accessibility & contrast

On white

1.42
#ECD798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.74
#ECD798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD798
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD798#FFFFFF#000000##000000
##ECD7981.001.4214.7414.74
#FFFFFF1.421.0021.0021.00
#00000014.7421.001.001.00
##00000014.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D494
Deuteranopia (green-blind)
#EADB9A
Tritanopia (blue-blind)
#F9CDC7
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd798;
/* rgb */ color: rgb(236, 215, 152);
/* oklch */ color: oklch(88.2% 0.084 91.8);
Tailwind
colors: {
  custom: {
    50: '#f3e3b7',
    500: '#ecd798',
    950: '#000000',
  },
}
SCSS
$custom: #ecd798;
$custom-light: #f3e3b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd798",
  "rgb": {
    "r": 236,
    "g": 215,
    "b": 152
  },
  "hsl": {
    "h": 45,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.88186,
    "c": 0.0839,
    "h": 91.8
  },
  "luminance": 0.68701
}

Semantic roles & 50–950 ramp

primary
#ECD798
secondary
#617AC8
accent
#44D115
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171511
muted
#858481

Preview Lab

Preview with #ECD798

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

Preview Lab → · Contrast checker → · Palette generator →

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