#ECD171#ECD171

#ECD171 is a very light, vivid yellow. Relative luminance 0.646; OKLCH L 86.4% C 0.120 H 94.0°. Best body text is #000000 at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#ECD171
RGBrgb(236, 209, 113)
HSLhsl(47, 76%, 68%)
HSVhsv(47, 52%, 93%)
CMYKcmyk(0%, 11.4%, 52.1%, 7.5%)
CIE-LABlab(84.29, -2.48, 50.59)
CIE-LCHlch(84.29, 50.65, 92.81°)
OKLaboklab(86.38% -0.0084 0.1198)
OKLCHoklch(86.38% 0.12 94)
XYZxyz(60.3753, 64.6287, 24.9140)
Luminance0.6463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD171 #718CEC
analogous
#EC9371 #ECD171 #CAEC71
triadic
#ECD171 #71ECD1 #D171EC
tetradic
#ECD171 #71EC93 #718CEC #EC71CA
square
#ECD171 #71EC93 #718CEC #EC71CA
split-complementary
#ECD171 #71CAEC #9371EC
monochromatic
#C8A21B #E5C03B #ECD171 #F3E2A7 #FAF4DD

Accessibility & contrast

On white

1.51
#ECD171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.93
#ECD171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD171
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD171#FFFFFF#000000##000000
##ECD1711.001.5113.9313.93
#FFFFFF1.511.0021.0021.00
#00000013.9321.001.001.00
##00000013.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CD68
Deuteranopia (green-blind)
#EAD675
Tritanopia (blue-blind)
#FCC4BB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #ecd171;
/* rgb */ color: rgb(236, 209, 113);
/* oklch */ color: oklch(86.4% 0.120 94.0);
Tailwind
colors: {
  custom: {
    50: '#f4de9c',
    500: '#ecd171',
    950: '#000000',
  },
}
SCSS
$custom: #ecd171;
$custom-light: #f4de9c;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd171",
  "rgb": {
    "r": 236,
    "g": 209,
    "b": 113
  },
  "hsl": {
    "h": 46.829,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.86379,
    "c": 0.12005,
    "h": 94
  },
  "luminance": 0.64626
}

Semantic roles & 50–950 ramp

primary
#ECD171
secondary
#3D5BC4
accent
#3AD90D
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #ECD171

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

Preview Lab → · Contrast checker → · Palette generator →

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