#ECF171#ECF171

#ECF171 is a very light, vivid yellow. Relative luminance 0.819; OKLCH L 92.9% C 0.151 H 111.0°. Best body text is #000000 at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#ECF171
RGBrgb(236, 241, 113)
HSLhsl(62, 82%, 69%)
HSVhsv(62, 53%, 95%)
CMYKcmyk(2.1%, 0%, 53.1%, 5.5%)
CIE-LABlab(92.55, -18.44, 60.27)
CIE-LCHlch(92.55, 63.03, 107.01°)
OKLaboklab(92.94% -0.0541 0.1408)
OKLCHoklch(92.94% 0.151 111)
XYZxyz(69.0296, 81.9372, 27.7987)
Luminance0.8194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF171 #7671F1
analogous
#F1B671 #ECF171 #ACF171
triadic
#ECF171 #71ECF1 #F171EC
tetradic
#ECF171 #71F1B6 #7671F1 #F171AC
square
#ECF171 #71F1B6 #7671F1 #F171AC
split-complementary
#ECF171 #71ACF1 #B671F1
monochromatic
#CBD315 #E5EC39 #ECF171 #F3F6A9 #FBFCE0

Accessibility & contrast

On white

1.21
#ECF171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.39
#ECF171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF171
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF171#FFFFFF#000000##000000
##ECF1711.001.2117.3917.39
#FFFFFF1.211.0021.0021.00
#00000017.3921.001.001.00
##00000017.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#FFEB78
Tritanopia (blue-blind)
#FAE4D5
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ecf171;
/* rgb */ color: rgb(236, 241, 113);
/* oklch */ color: oklch(92.9% 0.151 111.0);
Tailwind
colors: {
  custom: {
    50: '#f4f59d',
    500: '#ecf171',
    950: '#000000',
  },
}
SCSS
$custom: #ecf171;
$custom-light: #f4f59d;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf171",
  "rgb": {
    "r": 236,
    "g": 241,
    "b": 113
  },
  "hsl": {
    "h": 62.344,
    "s": 82.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.92936,
    "c": 0.15084,
    "h": 111
  },
  "luminance": 0.81936
}

Semantic roles & 50–950 ramp

primary
#ECF171
secondary
#413CCA
accent
#07DE0F
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF171

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

Preview Lab → · Contrast checker → · Palette generator →

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