#ECF871#ECF871

#ECF871 is a very light, vivid yellow. Relative luminance 0.862; OKLCH L 94.4% C 0.159 H 113.7°. Best body text is #000000 at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#ECF871
RGBrgb(236, 248, 113)
HSLhsl(65, 91%, 71%)
HSVhsv(65, 54%, 97%)
CMYKcmyk(4.8%, 0%, 54.4%, 2.7%)
CIE-LABlab(94.38, -21.81, 62.37)
CIE-LCHlch(94.38, 66.07, 109.27°)
OKLaboklab(94.4% -0.0637 0.1453)
OKLCHoklch(94.4% 0.159 113.7)
XYZxyz(71.1416, 86.1611, 28.5027)
Luminance0.8616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF871 #7D71F8
analogous
#F8C071 #ECF871 #A8F871
triadic
#ECF871 #71ECF8 #F871EC
tetradic
#ECF871 #71F8C0 #7D71F8 #F871A8
square
#ECF871 #71F8C0 #7D71F8 #F871A8
split-complementary
#ECF871 #71A8F8 #C071F8
monochromatic
#D0E30B #E4F537 #ECF871 #F4FBAB #FBFEE2

Accessibility & contrast

On white

1.15
#ECF871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.23
#ECF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF871
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF871#FFFFFF#000000##000000
##ECF8711.001.1518.2318.23
#FFFFFF1.151.0021.0021.00
#00000018.2321.001.001.00
##00000018.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED63
Deuteranopia (green-blind)
#FFF079
Tritanopia (blue-blind)
#F9EBDA
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ecf871;
/* rgb */ color: rgb(236, 248, 113);
/* oklch */ color: oklch(94.4% 0.159 113.7);
Tailwind
colors: {
  custom: {
    50: '#f5fa9e',
    500: '#ecf871',
    950: '#000000',
  },
}
SCSS
$custom: #ecf871;
$custom-light: #f5fa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf871",
  "rgb": {
    "r": 236,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 65.333,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94401,
    "c": 0.15864,
    "h": 113.7
  },
  "luminance": 0.8616
}

Semantic roles & 50–950 ramp

primary
#ECF871
secondary
#483AD3
accent
#00E614
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF871

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

Preview Lab → · Contrast checker → · Palette generator →

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