#ECF97E#ECF97E

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

Color values

HEX#ECF97E
RGBrgb(236, 249, 126)
HSLhsl(66, 91%, 74%)
HSVhsv(66, 49%, 98%)
CMYKcmyk(5.2%, 0%, 49.4%, 2.4%)
CIE-LABlab(94.78, -21.20, 57.01)
CIE-LCHlch(94.78, 60.82, 110.40°)
OKLaboklab(94.76% -0.0607 0.1349)
OKLCHoklch(94.76% 0.148 114.2)
XYZxyz(72.2348, 87.0917, 32.7397)
Luminance0.8709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF97E #8B7EF9
analogous
#F9C87E #ECF97E #AEF97E
triadic
#ECF97E #7EECF9 #F97EEC
tetradic
#ECF97E #7EF9C8 #8B7EF9 #F97EAE
square
#ECF97E #7EF9C8 #8B7EF9 #F97EAE
split-complementary
#ECF97E #7EAEF9 #C87EF9
monochromatic
#D9F10B #E3F644 #ECF97E #F5FCB8 #FBFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECF97E#FFFFFF#000000##000000
##ECF97E1.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)
#FFEF73
Deuteranopia (green-blind)
#FFF185
Tritanopia (blue-blind)
#F9EDDD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecf97e;
/* rgb */ color: rgb(236, 249, 126);
/* oklch */ color: oklch(94.8% 0.148 114.2);
Tailwind
colors: {
  custom: {
    50: '#f4fba6',
    500: '#ecf97e',
    950: '#000000',
  },
}
SCSS
$custom: #ecf97e;
$custom-light: #f4fba6;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf97e",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 126
  },
  "hsl": {
    "h": 66.341,
    "s": 91.111,
    "l": 73.529
  },
  "oklch": {
    "l": 0.94761,
    "c": 0.14794,
    "h": 114.2
  },
  "luminance": 0.87091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #ECF97E

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

Preview Lab → · Contrast checker → · Palette generator →

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