#ECFB97#ECFB97

#ECFB97 is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.5% C 0.125 H 115.8°. Best body text is #000000 at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#ECFB97
RGBrgb(236, 251, 151)
HSLhsl(69, 93%, 79%)
HSVhsv(69, 40%, 98%)
CMYKcmyk(6%, 0%, 39.8%, 1.6%)
CIE-LABlab(95.61, -19.69, 46.23)
CIE-LCHlch(95.61, 50.25, 113.07°)
OKLaboklab(95.52% -0.0544 0.1126)
OKLCHoklch(95.52% 0.125 115.8)
XYZxyz(74.6757, 89.0623, 42.5290)
Luminance0.8906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECFB97 #A697FB
analogous
#FBD897 #ECFB97 #BAFB97
triadic
#ECFB97 #97ECFB #FB97EC
tetradic
#ECFB97 #97FBD8 #A697FB #FB97BA
square
#ECFB97 #97FBD8 #A697FB #FB97BA
split-complementary
#ECFB97 #97BAFB #D897FB
monochromatic
#D6F621 #E1F95C #ECFB97 #F7FDD2 #FAFEE2

Accessibility & contrast

On white

1.12
#ECFB97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.81
#ECFB97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECFB97
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECFB97#FFFFFF#000000##000000
##ECFB971.001.1218.8118.81
#FFFFFF1.121.0021.0021.00
#00000018.8121.001.001.00
##00000018.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF39C
Tritanopia (blue-blind)
#F6F1E3
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #ecfb97;
/* rgb */ color: rgb(236, 251, 151);
/* oklch */ color: oklch(95.5% 0.125 115.8);
Tailwind
colors: {
  custom: {
    50: '#f3fcb7',
    500: '#ecfb97',
    950: '#000000',
  },
}
SCSS
$custom: #ecfb97;
$custom-light: #f3fcb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecfb97",
  "rgb": {
    "r": 236,
    "g": 251,
    "b": 151
  },
  "hsl": {
    "h": 69,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.95522,
    "c": 0.12502,
    "h": 115.8
  },
  "luminance": 0.89062
}

Semantic roles & 50–950 ramp

primary
#ECFB97
secondary
#6E5ADC
accent
#00E622
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECFB97

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

Preview Lab → · Contrast checker → · Palette generator →

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