#ECF97A#ECF97A

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

Color values

HEX#ECF97A
RGBrgb(236, 249, 122)
HSLhsl(66, 91%, 73%)
HSVhsv(66, 51%, 98%)
CMYKcmyk(5.2%, 0%, 51%, 2.4%)
CIE-LABlab(94.73, -21.55, 58.77)
CIE-LCHlch(94.73, 62.60, 110.13°)
OKLaboklab(94.71% -0.0621 0.1384)
OKLCHoklch(94.71% 0.152 114.2)
XYZxyz(71.9819, 86.9905, 31.4075)
Luminance0.8699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF97A #877AF9
analogous
#F9C77A #ECF97A #ACF97A
triadic
#ECF97A #7AECF9 #F97AEC
tetradic
#ECF97A #7AF9C7 #877AF9 #F97AAC
square
#ECF97A #7AF9C7 #877AF9 #F97AAC
split-complementary
#ECF97A #7AACF9 #C77AF9
monochromatic
#D7EE0B #E4F63F #ECF97A #F4FCB5 #FBFEE2

Accessibility & contrast

On white

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

On black

18.40
#ECF97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF97A
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF97A#FFFFFF#000000##000000
##ECF97A1.001.1418.4018.40
#FFFFFF1.141.0021.0021.00
#00000018.4021.001.001.00
##00000018.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF6E
Deuteranopia (green-blind)
#FFF181
Tritanopia (blue-blind)
#F9EDDC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecf97a;
/* rgb */ color: rgb(236, 249, 122);
/* oklch */ color: oklch(94.7% 0.152 114.2);
Tailwind
colors: {
  custom: {
    50: '#f4fba4',
    500: '#ecf97a',
    950: '#000000',
  },
}
SCSS
$custom: #ecf97a;
$custom-light: #f4fba4;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf97a",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 122
  },
  "hsl": {
    "h": 66.142,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.94712,
    "c": 0.15169,
    "h": 114.2
  },
  "luminance": 0.86989
}

Semantic roles & 50–950 ramp

primary
#ECF97A
secondary
#5142D5
accent
#00E617
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF97A

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

Preview Lab → · Contrast checker → · Palette generator →

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