#ECF771#ECF771

#ECF771 is a very light, vivid yellow. Relative luminance 0.855; OKLCH L 94.2% C 0.158 H 113.3°. Best body text is #000000 at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#ECF771
RGBrgb(236, 247, 113)
HSLhsl(65, 89%, 71%)
HSVhsv(65, 54%, 97%)
CMYKcmyk(4.5%, 0%, 54.3%, 3.1%)
CIE-LABlab(94.12, -21.33, 62.07)
CIE-LCHlch(94.12, 65.64, 108.96°)
OKLaboklab(94.19% -0.0623 0.1447)
OKLCHoklch(94.19% 0.158 113.3)
XYZxyz(70.8349, 85.5479, 28.4005)
Luminance0.8555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF771 #7C71F7
analogous
#F7BF71 #ECF771 #A9F771
triadic
#ECF771 #71ECF7 #F771EC
tetradic
#ECF771 #71F7BF #7C71F7 #F771A9
square
#ECF771 #71F7BF #7C71F7 #F771A9
split-complementary
#ECF771 #71A9F7 #BF71F7
monochromatic
#D0E10D #E4F437 #ECF771 #F4FAAB #FBFDE2

Accessibility & contrast

On white

1.16
#ECF771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.11
#ECF771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF771
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF771#FFFFFF#000000##000000
##ECF7711.001.1618.1118.11
#FFFFFF1.161.0021.0021.00
#00000018.1121.001.001.00
##00000018.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ecf771;
/* rgb */ color: rgb(236, 247, 113);
/* oklch */ color: oklch(94.2% 0.158 113.3);
Tailwind
colors: {
  custom: {
    50: '#f5f99e',
    500: '#ecf771',
    950: '#000000',
  },
}
SCSS
$custom: #ecf771;
$custom-light: #f5f99e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf771",
  "rgb": {
    "r": 236,
    "g": 247,
    "b": 113
  },
  "hsl": {
    "h": 64.925,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94191,
    "c": 0.15752,
    "h": 113.3
  },
  "luminance": 0.85547
}

Semantic roles & 50–950 ramp

primary
#ECF771
secondary
#473AD2
accent
#00E613
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF771

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

Preview Lab → · Contrast checker → · Palette generator →

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