#ECF971#ECF971

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

Color values

HEX#ECF971
RGBrgb(236, 249, 113)
HSLhsl(66, 92%, 71%)
HSVhsv(66, 55%, 98%)
CMYKcmyk(5.2%, 0%, 54.6%, 2.4%)
CIE-LABlab(94.64, -22.28, 62.67)
CIE-LCHlch(94.64, 66.52, 109.57°)
OKLaboklab(94.61% -0.065 0.1459)
OKLCHoklch(94.61% 0.16 114)
XYZxyz(71.4498, 86.7777, 28.6054)
Luminance0.8678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF971 #7E71F9
analogous
#F9C271 #ECF971 #A8F971
triadic
#ECF971 #71ECF9 #F971EC
tetradic
#ECF971 #71F9C2 #7E71F9 #F971A8
square
#ECF971 #71F9C2 #7E71F9 #F971A8
split-complementary
#ECF971 #71A8F9 #C271F9
monochromatic
#D1E60A #E4F736 #ECF971 #F4FBAC #FBFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECF971#FFFFFF#000000##000000
##ECF9711.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)
#FFEE63
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#F9ECDB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecf971;
/* rgb */ color: rgb(236, 249, 113);
/* oklch */ color: oklch(94.6% 0.160 114.0);
Tailwind
colors: {
  custom: {
    50: '#f5fb9e',
    500: '#ecf971',
    950: '#000000',
  },
}
SCSS
$custom: #ecf971;
$custom-light: #f5fb9e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf971",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 113
  },
  "hsl": {
    "h": 65.735,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.94611,
    "c": 0.15977,
    "h": 114
  },
  "luminance": 0.86776
}

Semantic roles & 50–950 ramp

primary
#ECF971
secondary
#493AD4
accent
#00E616
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF971

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

Preview Lab → · Contrast checker → · Palette generator →

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