#ECF257#ECF257

#ECF257 is a very light, vivid yellow. Relative luminance 0.820; OKLCH L 92.9% C 0.173 H 111.5°. Best body text is #000000 at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#ECF257
RGBrgb(236, 242, 87)
HSLhsl(62, 86%, 65%)
HSVhsv(62, 64%, 95%)
CMYKcmyk(2.5%, 0%, 64%, 5.1%)
CIE-LABlab(92.59, -20.71, 71.19)
CIE-LCHlch(92.59, 74.14, 106.22°)
OKLaboklab(92.9% -0.0632 0.1608)
OKLCHoklch(92.9% 0.173 111.5)
XYZxyz(68.0665, 82.0269, 21.2622)
Luminance0.8203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF257 #5D57F2
analogous
#F2AB57 #ECF257 #9EF257
triadic
#ECF257 #57ECF2 #F257EC
tetradic
#ECF257 #57F2AB #5D57F2 #F2579E
square
#ECF257 #57F2AB #5D57F2 #F2579E
split-complementary
#ECF257 #579EF2 #AB57F2
monochromatic
#B9C00F #E6EE1E #ECF257 #F2F690 #F9FBC9

Accessibility & contrast

On white

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

On black

17.41
#ECF257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF257
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF257#FFFFFF#000000##000000
##ECF2571.001.2117.4117.41
#FFFFFF1.211.0021.0021.00
#00000017.4121.001.001.00
##00000017.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE842
Deuteranopia (green-blind)
#FFEC61
Tritanopia (blue-blind)
#FBE4D2
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ecf257;
/* rgb */ color: rgb(236, 242, 87);
/* oklch */ color: oklch(92.9% 0.173 111.5);
Tailwind
colors: {
  custom: {
    50: '#f5f68e',
    500: '#ecf257',
    950: '#000000',
  },
}
SCSS
$custom: #ecf257;
$custom-light: #f5f68e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf257",
  "rgb": {
    "r": 236,
    "g": 242,
    "b": 87
  },
  "hsl": {
    "h": 62.323,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.92896,
    "c": 0.17272,
    "h": 111.5
  },
  "luminance": 0.82025
}

Semantic roles & 50–950 ramp

primary
#ECF257
secondary
#3530BE
accent
#03E20C
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #ECF257

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

Preview Lab → · Contrast checker → · Palette generator →

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