#ECFB98#ECFB98

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

Color values

HEX#ECFB98
RGBrgb(236, 251, 152)
HSLhsl(69, 93%, 79%)
HSVhsv(69, 39%, 98%)
CMYKcmyk(6%, 0%, 39.4%, 1.6%)
CIE-LABlab(95.62, -19.58, 45.76)
CIE-LCHlch(95.62, 49.77, 113.17°)
OKLaboklab(95.54% -0.054 0.1115)
OKLCHoklch(95.54% 0.124 115.8)
XYZxyz(74.7572, 89.0949, 42.9585)
Luminance0.8909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECFB98 #A798FB
analogous
#FBD998 #ECFB98 #BBFB98
triadic
#ECFB98 #98ECFB #FB98EC
tetradic
#ECFB98 #98FBD9 #A798FB #FB98BB
square
#ECFB98 #98FBD9 #A798FB #FB98BB
split-complementary
#ECFB98 #98BBFB #D998FB
monochromatic
#D6F622 #E1F95D #ECFB98 #F7FDD3 #FAFEE2

Accessibility & contrast

On white

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

On black

18.82
#ECFB98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECFB98
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECFB98#FFFFFF#000000##000000
##ECFB981.001.1218.8218.82
#FFFFFF1.121.0021.0021.00
#00000018.8221.001.001.00
##00000018.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ecfb98;
/* rgb */ color: rgb(236, 251, 152);
/* oklch */ color: oklch(95.5% 0.124 115.8);
Tailwind
colors: {
  custom: {
    50: '#f3fcb7',
    500: '#ecfb98',
    950: '#000000',
  },
}
SCSS
$custom: #ecfb98;
$custom-light: #f3fcb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecfb98",
  "rgb": {
    "r": 236,
    "g": 251,
    "b": 152
  },
  "hsl": {
    "h": 69.091,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.95537,
    "c": 0.12393,
    "h": 115.8
  },
  "luminance": 0.89094
}

Semantic roles & 50–950 ramp

primary
#ECFB98
secondary
#6F5BDC
accent
#00E623
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECFB98

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

Preview Lab → · Contrast checker → · Palette generator →

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