#ECFB57#ECFB57

#ECFB57 is a very light, vivid yellow. Relative luminance 0.875; OKLCH L 94.8% C 0.182 H 114.4°. Best body text is #000000 at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#ECFB57
RGBrgb(236, 251, 87)
HSLhsl(65, 95%, 66%)
HSVhsv(65, 65%, 98%)
CMYKcmyk(6%, 0%, 65.3%, 1.6%)
CIE-LABlab(94.96, -24.99, 73.63)
CIE-LCHlch(94.96, 77.76, 108.75°)
OKLaboklab(94.79% -0.0752 0.1659)
OKLCHoklch(94.79% 0.182 114.4)
XYZxyz(70.8114, 87.5166, 22.1771)
Luminance0.8751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECFB57 #6657FB
analogous
#FBB857 #ECFB57 #9AFB57
triadic
#ECFB57 #57ECFB #FB57EC
tetradic
#ECFB57 #57FBB8 #6657FB #FB579A
square
#ECFB57 #57FBB8 #6657FB #FB579A
split-complementary
#ECFB57 #579AFB #B857FB
monochromatic
#C0D305 #E5FA1B #ECFB57 #F3FC93 #FAFECF

Accessibility & contrast

On white

1.13
#ECFB57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.50
#ECFB57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECFB57
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECFB57#FFFFFF#000000##000000
##ECFB571.001.1318.5018.50
#FFFFFF1.131.0021.0021.00
#00000018.5021.001.001.00
##00000018.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF40
Deuteranopia (green-blind)
#FFF263
Tritanopia (blue-blind)
#FBEDDA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #ecfb57;
/* rgb */ color: rgb(236, 251, 87);
/* oklch */ color: oklch(94.8% 0.182 114.4);
Tailwind
colors: {
  custom: {
    50: '#f5fc8e',
    500: '#ecfb57',
    950: '#000000',
  },
}
SCSS
$custom: #ecfb57;
$custom-light: #f5fc8e;
$custom-dark: #000000;
JSON
{
  "hex": "#ecfb57",
  "rgb": {
    "r": 236,
    "g": 251,
    "b": 87
  },
  "hsl": {
    "h": 65.488,
    "s": 95.349,
    "l": 66.275
  },
  "oklch": {
    "l": 0.94793,
    "c": 0.18214,
    "h": 114.4
  },
  "luminance": 0.87515
}

Semantic roles & 50–950 ramp

primary
#ECFB57
secondary
#3829CD
accent
#00E615
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #ECFB57

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

Preview Lab → · Contrast checker → · Palette generator →

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