#ECF198#ECF198

#ECF198 is a very light, moderate yellow. Relative luminance 0.830; OKLCH L 93.5% C 0.111 H 111.1°. Best body text is #000000 at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#ECF198
RGBrgb(236, 241, 152)
HSLhsl(63, 76%, 77%)
HSVhsv(63, 37%, 95%)
CMYKcmyk(2.1%, 0%, 36.9%, 5.5%)
CIE-LABlab(93.02, -14.72, 42.44)
CIE-LCHlch(93.02, 44.92, 109.13°)
OKLaboklab(93.47% -0.0402 0.104)
OKLCHoklch(93.47% 0.111 111.1)
XYZxyz(71.7155, 83.0116, 41.9446)
Luminance0.8301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF198 #9D98F1
analogous
#F1CA98 #ECF198 #C0F198
triadic
#ECF198 #98ECF1 #F198EC
tetradic
#ECF198 #98F1CA #9D98F1 #F198C0
square
#ECF198 #98F1CA #9D98F1 #F198C0
split-complementary
#ECF198 #98C0F1 #CA98F1
monochromatic
#D8E22C #E2EA62 #ECF198 #F6F8CE #FAFBE4

Accessibility & contrast

On white

1.19
#ECF198 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.60
#ECF198 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF198
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF198#FFFFFF#000000##000000
##ECF1981.001.1917.6017.60
#FFFFFF1.191.0021.0021.00
#00000017.6021.001.001.00
##00000017.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEEA91
Deuteranopia (green-blind)
#FEEC9C
Tritanopia (blue-blind)
#F7E7DB
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ecf198;
/* rgb */ color: rgb(236, 241, 152);
/* oklch */ color: oklch(93.5% 0.111 111.1);
Tailwind
colors: {
  custom: {
    50: '#f3f5b7',
    500: '#ecf198',
    950: '#000000',
  },
}
SCSS
$custom: #ecf198;
$custom-light: #f3f5b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf198",
  "rgb": {
    "r": 236,
    "g": 241,
    "b": 152
  },
  "hsl": {
    "h": 63.371,
    "s": 76.068,
    "l": 77.059
  },
  "oklch": {
    "l": 0.93465,
    "c": 0.11145,
    "h": 111.1
  },
  "luminance": 0.8301
}

Semantic roles & 50–950 ramp

primary
#ECF198
secondary
#655FCE
accent
#0DD819
background
#FFFFFD
surface
#FEFEF8
border
#D6D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECF198

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

Preview Lab → · Contrast checker → · Palette generator →

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