#ECD970#ECD970

#ECD970 is a very light, vivid yellow. Relative luminance 0.686; OKLCH L 88.0% C 0.128 H 99.2°. Best body text is #000000 at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#ECD970
RGBrgb(236, 217, 112)
HSLhsl(51, 77%, 68%)
HSVhsv(51, 53%, 93%)
CMYKcmyk(0%, 8.1%, 52.5%, 7.5%)
CIE-LABlab(86.32, -6.63, 53.48)
CIE-LCHlch(86.32, 53.89, 97.07°)
OKLaboklab(87.98% -0.0205 0.126)
OKLCHoklch(87.98% 0.128 99.2)
XYZxyz(62.3316, 68.6308, 25.2898)
Luminance0.6863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD970 #7083EC
analogous
#EC9B70 #ECD970 #C1EC70
triadic
#ECD970 #70ECD9 #D970EC
tetradic
#ECD970 #70EC9B #7083EC #EC70C1
square
#ECD970 #70EC9B #7083EC #EC70C1
split-complementary
#ECD970 #70C1EC #9B70EC
monochromatic
#C7AD1A #E5CB3A #ECD970 #F3E7A6 #FAF6DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECD970#FFFFFF#000000##000000
##ECD9701.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)
#EAD466
Deuteranopia (green-blind)
#F0DB75
Tritanopia (blue-blind)
#FCCCC1
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd970;
/* rgb */ color: rgb(236, 217, 112);
/* oklch */ color: oklch(88.0% 0.128 99.2);
Tailwind
colors: {
  custom: {
    50: '#f4e49c',
    500: '#ecd970',
    950: '#000000',
  },
}
SCSS
$custom: #ecd970;
$custom-light: #f4e49c;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd970",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 112
  },
  "hsl": {
    "h": 50.806,
    "s": 76.543,
    "l": 68.235
  },
  "oklch": {
    "l": 0.87981,
    "c": 0.12763,
    "h": 99.2
  },
  "luminance": 0.68628
}

Semantic roles & 50–950 ramp

primary
#ECD970
secondary
#3C51C4
accent
#2CD90D
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #ECD970

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

Preview Lab → · Contrast checker → · Palette generator →

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