#ECF172#ECF172

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

Color values

HEX#ECF172
RGBrgb(236, 241, 114)
HSLhsl(62, 82%, 70%)
HSVhsv(62, 53%, 95%)
CMYKcmyk(2.1%, 0%, 52.7%, 5.5%)
CIE-LABlab(92.56, -18.36, 59.84)
CIE-LCHlch(92.56, 62.59, 107.06°)
OKLaboklab(92.95% -0.0538 0.14)
OKLCHoklch(92.95% 0.15 111)
XYZxyz(69.0862, 81.9599, 28.0968)
Luminance0.8196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF172 #7772F1
analogous
#F1B672 #ECF172 #ADF172
triadic
#ECF172 #72ECF1 #F172EC
tetradic
#ECF172 #72F1B6 #7772F1 #F172AD
square
#ECF172 #72F1B6 #7772F1 #F172AD
split-complementary
#ECF172 #72ADF1 #B672F1
monochromatic
#CCD415 #E4EB3A #ECF172 #F4F7AA #FBFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECF172#FFFFFF#000000##000000
##ECF1721.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)
#FFE865
Deuteranopia (green-blind)
#FFEB79
Tritanopia (blue-blind)
#FAE4D5
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ecf172;
/* rgb */ color: rgb(236, 241, 114);
/* oklch */ color: oklch(92.9% 0.150 111.0);
Tailwind
colors: {
  custom: {
    50: '#f4f59e',
    500: '#ecf172',
    950: '#000000',
  },
}
SCSS
$custom: #ecf172;
$custom-light: #f4f59e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf172",
  "rgb": {
    "r": 236,
    "g": 241,
    "b": 114
  },
  "hsl": {
    "h": 62.362,
    "s": 81.935,
    "l": 69.608
  },
  "oklch": {
    "l": 0.92947,
    "c": 0.14994,
    "h": 111
  },
  "luminance": 0.81958
}

Semantic roles & 50–950 ramp

primary
#ECF172
secondary
#423DCA
accent
#07DE10
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF172

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

Preview Lab → · Contrast checker → · Palette generator →

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