#ECF278#ECF278

#ECF278 is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.2% C 0.146 H 111.4°. Best body text is #000000 at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#ECF278
RGBrgb(236, 242, 120)
HSLhsl(63, 82%, 71%)
HSVhsv(63, 50%, 95%)
CMYKcmyk(2.5%, 0%, 50.4%, 5.1%)
CIE-LABlab(92.88, -18.35, 57.51)
CIE-LCHlch(92.88, 60.36, 107.70°)
OKLaboklab(93.23% -0.0532 0.1355)
OKLCHoklch(93.23% 0.146 111.4)
XYZxyz(69.7358, 82.6946, 30.0537)
Luminance0.8269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF278 #7E78F2
analogous
#F2BB78 #ECF278 #AFF278
triadic
#ECF278 #78ECF2 #F278EC
tetradic
#ECF278 #78F2BB #7E78F2 #F278AF
square
#ECF278 #78F2BB #7E78F2 #F278AF
split-complementary
#ECF278 #78AFF2 #BB78F2
monochromatic
#D1DB15 #E4ED40 #ECF278 #F4F7B0 #FBFCE3

Accessibility & contrast

On white

1.20
#ECF278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.54
#ECF278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF278
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF278#FFFFFF#000000##000000
##ECF2781.001.2017.5417.54
#FFFFFF1.201.0021.0021.00
#00000017.5421.001.001.00
##00000017.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96D
Deuteranopia (green-blind)
#FFEC7E
Tritanopia (blue-blind)
#F9E6D6
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ecf278;
/* rgb */ color: rgb(236, 242, 120);
/* oklch */ color: oklch(93.2% 0.146 111.4);
Tailwind
colors: {
  custom: {
    50: '#f4f6a2',
    500: '#ecf278',
    950: '#000000',
  },
}
SCSS
$custom: #ecf278;
$custom-light: #f4f6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf278",
  "rgb": {
    "r": 236,
    "g": 242,
    "b": 120
  },
  "hsl": {
    "h": 62.951,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.93225,
    "c": 0.14554,
    "h": 111.4
  },
  "luminance": 0.82693
}

Semantic roles & 50–950 ramp

primary
#ECF278
secondary
#4942CC
accent
#07DF11
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF278

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

Preview Lab → · Contrast checker → · Palette generator →

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