#ECF97D#ECF97D

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

Color values

HEX#ECF97D
RGBrgb(236, 249, 125)
HSLhsl(66, 91%, 73%)
HSVhsv(66, 50%, 98%)
CMYKcmyk(5.2%, 0%, 49.8%, 2.4%)
CIE-LABlab(94.77, -21.29, 57.45)
CIE-LCHlch(94.77, 61.27, 110.33°)
OKLaboklab(94.75% -0.0611 0.1358)
OKLCHoklch(94.75% 0.149 114.2)
XYZxyz(72.1706, 87.0660, 32.4016)
Luminance0.8707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF97D #8A7DF9
analogous
#F9C87D #ECF97D #AEF97D
triadic
#ECF97D #7DECF9 #F97DEC
tetradic
#ECF97D #7DF9C8 #8A7DF9 #F97DAE
square
#ECF97D #7DF9C8 #8A7DF9 #F97DAE
split-complementary
#ECF97D #7DAEF9 #C87DF9
monochromatic
#D8F00B #E3F642 #ECF97D #F5FCB7 #FBFEE2

Accessibility & contrast

On white

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

On black

18.41
#ECF97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF97D
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF97D#FFFFFF#000000##000000
##ECF97D1.001.1418.4118.41
#FFFFFF1.141.0021.0021.00
#00000018.4121.001.001.00
##00000018.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF72
Deuteranopia (green-blind)
#FFF184
Tritanopia (blue-blind)
#F9EDDD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecf97d;
/* rgb */ color: rgb(236, 249, 125);
/* oklch */ color: oklch(94.7% 0.149 114.2);
Tailwind
colors: {
  custom: {
    50: '#f4fba5',
    500: '#ecf97d',
    950: '#000000',
  },
}
SCSS
$custom: #ecf97d;
$custom-light: #f4fba5;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf97d",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 125
  },
  "hsl": {
    "h": 66.29,
    "s": 91.176,
    "l": 73.333
  },
  "oklch": {
    "l": 0.94748,
    "c": 0.14889,
    "h": 114.2
  },
  "luminance": 0.87065
}

Semantic roles & 50–950 ramp

primary
#ECF97D
secondary
#5444D6
accent
#00E618
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF97D

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

Preview Lab → · Contrast checker → · Palette generator →

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