#ECF398#ECF398

#ECF398 is a very light, moderate yellow. Relative luminance 0.842; OKLCH L 93.9% C 0.114 H 112.2°. Best body text is #000000 at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#ECF398
RGBrgb(236, 243, 152)
HSLhsl(65, 79%, 77%)
HSVhsv(65, 37%, 95%)
CMYKcmyk(2.9%, 0%, 37.4%, 4.7%)
CIE-LABlab(93.54, -15.70, 43.11)
CIE-LCHlch(93.54, 45.88, 110.01°)
OKLaboklab(93.88% -0.043 0.1055)
OKLCHoklch(93.88% 0.114 112.2)
XYZxyz(72.3108, 84.2021, 42.1430)
Luminance0.8420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF398 #9F98F3
analogous
#F3CC98 #ECF398 #BFF398
triadic
#ECF398 #98ECF3 #F398EC
tetradic
#ECF398 #98F3CC #9F98F3 #F398BF
square
#ECF398 #98F3CC #9F98F3 #F398BF
split-complementary
#ECF398 #98BFF3 #CC98F3
monochromatic
#D8E62A #E2ED61 #ECF398 #F6F9CF #FAFCE4

Accessibility & contrast

On white

1.18
#ECF398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.84
#ECF398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF398
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF398#FFFFFF#000000##000000
##ECF3981.001.1817.8417.84
#FFFFFF1.181.0021.0021.00
#00000017.8421.001.001.00
##00000017.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB91
Deuteranopia (green-blind)
#FFEE9C
Tritanopia (blue-blind)
#F7E9DC
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #ecf398;
/* rgb */ color: rgb(236, 243, 152);
/* oklch */ color: oklch(93.9% 0.114 112.2);
Tailwind
colors: {
  custom: {
    50: '#f3f7b7',
    500: '#ecf398',
    950: '#000000',
  },
}
SCSS
$custom: #ecf398;
$custom-light: #f3f7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf398",
  "rgb": {
    "r": 236,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 64.615,
    "s": 79.13,
    "l": 77.451
  },
  "oklch": {
    "l": 0.93878,
    "c": 0.1139,
    "h": 112.2
  },
  "luminance": 0.84201
}

Semantic roles & 50–950 ramp

primary
#ECF398
secondary
#675ED1
accent
#0ADB1A
background
#FFFFFD
surface
#FEFEF8
border
#D6D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECF398

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

Preview Lab → · Contrast checker → · Palette generator →

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