#ECF972#ECF972

#ECF972 is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 94.6% C 0.159 H 114.0°. Best body text is #000000 at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#ECF972
RGBrgb(236, 249, 114)
HSLhsl(66, 92%, 71%)
HSVhsv(66, 54%, 98%)
CMYKcmyk(5.2%, 0%, 54.2%, 2.4%)
CIE-LABlab(94.65, -22.21, 62.25)
CIE-LCHlch(94.65, 66.09, 109.63°)
OKLaboklab(94.62% -0.0647 0.1451)
OKLCHoklch(94.62% 0.159 114)
XYZxyz(71.5064, 86.8003, 28.9036)
Luminance0.8680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF972 #7F72F9
analogous
#F9C272 #ECF972 #A8F972
triadic
#ECF972 #72ECF9 #F972EC
tetradic
#ECF972 #72F9C2 #7F72F9 #F972A8
square
#ECF972 #72F9C2 #7F72F9 #F972A8
split-complementary
#ECF972 #72A8F9 #C272F9
monochromatic
#D1E70A #E4F737 #ECF972 #F4FBAD #FBFEE2

Accessibility & contrast

On white

1.14
#ECF972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.36
#ECF972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF972
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF972#FFFFFF#000000##000000
##ECF9721.001.1418.3618.36
#FFFFFF1.141.0021.0021.00
#00000018.3621.001.001.00
##00000018.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE64
Deuteranopia (green-blind)
#FFF17A
Tritanopia (blue-blind)
#F9ECDB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecf972;
/* rgb */ color: rgb(236, 249, 114);
/* oklch */ color: oklch(94.6% 0.159 114.0);
Tailwind
colors: {
  custom: {
    50: '#f5fb9e',
    500: '#ecf972',
    950: '#000000',
  },
}
SCSS
$custom: #ecf972;
$custom-light: #f5fb9e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf972",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 114
  },
  "hsl": {
    "h": 65.778,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.94622,
    "c": 0.1589,
    "h": 114
  },
  "luminance": 0.86799
}

Semantic roles & 50–950 ramp

primary
#ECF972
secondary
#4A3BD4
accent
#00E616
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF972

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

Preview Lab → · Contrast checker → · Palette generator →

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