#ECF997#ECF997

#ECF997 is a very light, vivid yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.122 H 114.9°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#ECF997
RGBrgb(236, 249, 151)
HSLhsl(68, 89%, 78%)
HSVhsv(68, 39%, 98%)
CMYKcmyk(5.2%, 0%, 39.4%, 2.4%)
CIE-LABlab(95.08, -18.73, 45.57)
CIE-LCHlch(95.08, 49.26, 112.34°)
OKLaboklab(95.11% -0.0516 0.1111)
OKLCHoklch(95.11% 0.122 114.9)
XYZxyz(74.0542, 87.8194, 42.3218)
Luminance0.8782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF997 #A497F9
analogous
#F9D597 #ECF997 #BBF997
triadic
#ECF997 #97ECF9 #F997EC
tetradic
#ECF997 #97F9D5 #A497F9 #F997BB
square
#ECF997 #97F9D5 #A497F9 #F997BB
split-complementary
#ECF997 #97BBF9 #D597F9
monochromatic
#D7F223 #E1F65D #ECF997 #F7FCD1 #FAFDE2

Accessibility & contrast

On white

1.13
#ECF997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.56
#ECF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF997
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF997#FFFFFF#000000##000000
##ECF9971.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF08F
Deuteranopia (green-blind)
#FFF29C
Tritanopia (blue-blind)
#F6EFE1
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #ecf997;
/* rgb */ color: rgb(236, 249, 151);
/* oklch */ color: oklch(95.1% 0.122 114.9);
Tailwind
colors: {
  custom: {
    50: '#f3fbb7',
    500: '#ecf997',
    950: '#000000',
  },
}
SCSS
$custom: #ecf997;
$custom-light: #f3fbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf997",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 67.959,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.95106,
    "c": 0.12247,
    "h": 114.9
  },
  "luminance": 0.87819
}

Semantic roles & 50–950 ramp

primary
#ECF997
secondary
#6C5BD9
accent
#00E61E
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECF997

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

Preview Lab → · Contrast checker → · Palette generator →

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