#ECF97B#ECF97B

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

Color values

HEX#ECF97B
RGBrgb(236, 249, 123)
HSLhsl(66, 91%, 73%)
HSVhsv(66, 51%, 98%)
CMYKcmyk(5.2%, 0%, 50.6%, 2.4%)
CIE-LABlab(94.74, -21.46, 58.33)
CIE-LCHlch(94.74, 62.16, 110.20°)
OKLaboklab(94.72% -0.0617 0.1375)
OKLCHoklch(94.72% 0.151 114.2)
XYZxyz(72.0441, 87.0154, 31.7355)
Luminance0.8701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF97B #887BF9
analogous
#F9C77B #ECF97B #ADF97B
triadic
#ECF97B #7BECF9 #F97BEC
tetradic
#ECF97B #7BF9C7 #887BF9 #F97BAD
square
#ECF97B #7BF9C7 #887BF9 #F97BAD
split-complementary
#ECF97B #7BADF9 #C77BF9
monochromatic
#D7EF0B #E4F640 #ECF97B #F4FCB6 #FBFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##ECF97B#FFFFFF#000000##000000
##ECF97B1.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)
#FFEF6F
Deuteranopia (green-blind)
#FFF182
Tritanopia (blue-blind)
#F9EDDC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecf97b;
/* rgb */ color: rgb(236, 249, 123);
/* oklch */ color: oklch(94.7% 0.151 114.2);
Tailwind
colors: {
  custom: {
    50: '#f4fba4',
    500: '#ecf97b',
    950: '#000000',
  },
}
SCSS
$custom: #ecf97b;
$custom-light: #f4fba4;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf97b",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 123
  },
  "hsl": {
    "h": 66.19,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.94724,
    "c": 0.15077,
    "h": 114.2
  },
  "luminance": 0.87014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #ECF97B

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

Preview Lab → · Contrast checker → · Palette generator →

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