#ECF397#ECF397

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

Color values

HEX#ECF397
RGBrgb(236, 243, 151)
HSLhsl(65, 79%, 77%)
HSVhsv(65, 38%, 95%)
CMYKcmyk(2.9%, 0%, 37.9%, 4.7%)
CIE-LABlab(93.52, -15.81, 43.58)
CIE-LCHlch(93.52, 46.36, 109.94°)
OKLaboklab(93.86% -0.0433 0.1065)
OKLCHoklch(93.86% 0.115 112.1)
XYZxyz(72.2292, 84.1695, 41.7135)
Luminance0.8417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF397 #9E97F3
analogous
#F3CC97 #ECF397 #BEF397
triadic
#ECF397 #97ECF3 #F397EC
tetradic
#ECF397 #97F3CC #9E97F3 #F397BE
square
#ECF397 #97F3CC #9E97F3 #F397BE
split-complementary
#ECF397 #97BEF3 #CC97F3
monochromatic
#D8E629 #E2ED60 #ECF397 #F6F9CE #FAFCE4

Accessibility & contrast

On white

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

On black

17.83
#ECF397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF397
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF397#FFFFFF#000000##000000
##ECF3971.001.1817.8317.83
#FFFFFF1.181.0021.0021.00
#00000017.8321.001.001.00
##00000017.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ecf397;
/* rgb */ color: rgb(236, 243, 151);
/* oklch */ color: oklch(93.9% 0.115 112.1);
Tailwind
colors: {
  custom: {
    50: '#f3f7b7',
    500: '#ecf397',
    950: '#000000',
  },
}
SCSS
$custom: #ecf397;
$custom-light: #f3f7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf397",
  "rgb": {
    "r": 236,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 64.565,
    "s": 79.31,
    "l": 77.255
  },
  "oklch": {
    "l": 0.93862,
    "c": 0.115,
    "h": 112.1
  },
  "luminance": 0.84168
}

Semantic roles & 50–950 ramp

primary
#ECF397
secondary
#665DD1
accent
#0ADC1A
background
#FFFFFD
surface
#FEFEF8
border
#D6D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #ECF397

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

Preview Lab → · Contrast checker → · Palette generator →

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