#ECF158#ECF158

#ECF158 is a very light, vivid yellow. Relative luminance 0.814; OKLCH L 92.7% C 0.171 H 111.1°. Best body text is #000000 at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#ECF158
RGBrgb(236, 241, 88)
HSLhsl(62, 85%, 65%)
HSVhsv(62, 63%, 95%)
CMYKcmyk(2.1%, 0%, 63.5%, 5.5%)
CIE-LABlab(92.33, -20.17, 70.53)
CIE-LCHlch(92.33, 73.36, 105.96°)
OKLaboklab(92.69% -0.0616 0.1595)
OKLCHoklch(92.69% 0.171 111.1)
XYZxyz(67.8108, 81.4497, 21.3799)
Luminance0.8145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF158 #5D58F1
analogous
#F1AA58 #ECF158 #A0F158
triadic
#ECF158 #58ECF1 #F158EC
tetradic
#ECF158 #58F1AA #5D58F1 #F158A0
square
#ECF158 #58F1AA #5D58F1 #F158A0
split-complementary
#ECF158 #58A0F1 #AA58F1
monochromatic
#B9BF10 #E6EC20 #ECF158 #F2F690 #F9FAC9

Accessibility & contrast

On white

1.21
#ECF158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.29
#ECF158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF158
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF158#FFFFFF#000000##000000
##ECF1581.001.2117.2917.29
#FFFFFF1.211.0021.0021.00
#00000017.2921.001.001.00
##00000017.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE744
Deuteranopia (green-blind)
#FFEB62
Tritanopia (blue-blind)
#FBE3D2
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ecf158;
/* rgb */ color: rgb(236, 241, 88);
/* oklch */ color: oklch(92.7% 0.171 111.1);
Tailwind
colors: {
  custom: {
    50: '#f5f58e',
    500: '#ecf158',
    950: '#000000',
  },
}
SCSS
$custom: #ecf158;
$custom-light: #f5f58e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf158",
  "rgb": {
    "r": 236,
    "g": 241,
    "b": 88
  },
  "hsl": {
    "h": 61.961,
    "s": 84.53,
    "l": 64.51
  },
  "oklch": {
    "l": 0.92694,
    "c": 0.17099,
    "h": 111.1
  },
  "luminance": 0.81448
}

Semantic roles & 50–950 ramp

primary
#ECF158
secondary
#3530BD
accent
#05E10C
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #ECF158

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

Preview Lab → · Contrast checker → · Palette generator →

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