#ECD974#ECD974

#ECD974 is a very light, vivid yellow. Relative luminance 0.687; OKLCH L 88.0% C 0.124 H 98.9°. Best body text is #000000 at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#ECD974
RGBrgb(236, 217, 116)
HSLhsl(51, 76%, 69%)
HSVhsv(51, 51%, 93%)
CMYKcmyk(0%, 8.1%, 50.8%, 7.5%)
CIE-LABlab(86.37, -6.30, 51.64)
CIE-LCHlch(86.37, 52.02, 96.96°)
OKLaboklab(88.03% -0.0191 0.1223)
OKLCHoklch(88.03% 0.124 98.9)
XYZxyz(62.5593, 68.7219, 26.4889)
Luminance0.6872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD974 #7487EC
analogous
#EC9D74 #ECD974 #C3EC74
triadic
#ECD974 #74ECD9 #D974EC
tetradic
#ECD974 #74EC9D #7487EC #EC74C3
square
#ECD974 #74EC9D #7487EC #EC74C3
split-complementary
#ECD974 #74C3EC #9D74EC
monochromatic
#CAAE1C #E5CA3E #ECD974 #F3E8AA #FBF6E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECD974#FFFFFF#000000##000000
##ECD9741.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)
#EAD46B
Deuteranopia (green-blind)
#EFDB78
Tritanopia (blue-blind)
#FBCCC2
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd974;
/* rgb */ color: rgb(236, 217, 116);
/* oklch */ color: oklch(88.0% 0.124 98.9);
Tailwind
colors: {
  custom: {
    50: '#f4e49e',
    500: '#ecd974',
    950: '#000000',
  },
}
SCSS
$custom: #ecd974;
$custom-light: #f4e49e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd974",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 116
  },
  "hsl": {
    "h": 50.5,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.88031,
    "c": 0.12381,
    "h": 98.9
  },
  "luminance": 0.6872
}

Semantic roles & 50–950 ramp

primary
#ECD974
secondary
#4055C5
accent
#2DD80D
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD974

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

Preview Lab → · Contrast checker → · Palette generator →

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