#ECF97F#ECF97F

#ECF97F is a very light, vivid yellow. Relative luminance 0.871; OKLCH L 94.8% C 0.147 H 114.3°. Best body text is #000000 at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#ECF97F
RGBrgb(236, 249, 127)
HSLhsl(66, 91%, 74%)
HSVhsv(66, 49%, 98%)
CMYKcmyk(5.2%, 0%, 49%, 2.4%)
CIE-LABlab(94.79, -21.11, 56.56)
CIE-LCHlch(94.79, 60.37, 110.47°)
OKLaboklab(94.77% -0.0604 0.134)
OKLCHoklch(94.77% 0.147 114.3)
XYZxyz(72.2997, 87.1176, 33.0812)
Luminance0.8712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF97F #8C7FF9
analogous
#F9C97F #ECF97F #AFF97F
triadic
#ECF97F #7FECF9 #F97FEC
tetradic
#ECF97F #7FF9C9 #8C7FF9 #F97FAF
square
#ECF97F #7FF9C9 #8C7FF9 #F97FAF
split-complementary
#ECF97F #7FAFF9 #C97FF9
monochromatic
#DAF20B #E3F645 #ECF97F #F5FCB9 #FBFEE2

Accessibility & contrast

On white

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

On black

18.42
#ECF97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF97F
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF97F#FFFFFF#000000##000000
##ECF97F1.001.1418.4218.42
#FFFFFF1.141.0021.0021.00
#00000018.4221.001.001.00
##00000018.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF74
Deuteranopia (green-blind)
#FFF185
Tritanopia (blue-blind)
#F8EDDD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecf97f;
/* rgb */ color: rgb(236, 249, 127);
/* oklch */ color: oklch(94.8% 0.147 114.3);
Tailwind
colors: {
  custom: {
    50: '#f4fba7',
    500: '#ecf97f',
    950: '#000000',
  },
}
SCSS
$custom: #ecf97f;
$custom-light: #f4fba7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf97f",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 127
  },
  "hsl": {
    "h": 66.393,
    "s": 91.045,
    "l": 73.725
  },
  "oklch": {
    "l": 0.94773,
    "c": 0.14699,
    "h": 114.3
  },
  "luminance": 0.87117
}

Semantic roles & 50–950 ramp

primary
#ECF97F
secondary
#5546D6
accent
#00E618
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#171710
muted
#858580

Preview Lab

Preview with #ECF97F

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

Preview Lab → · Contrast checker → · Palette generator →

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