#ECF962#ECF962

#ECF962 is a very light, vivid yellow. Relative luminance 0.865; OKLCH L 94.5% C 0.172 H 113.8°. Best body text is #000000 at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#ECF962
RGBrgb(236, 249, 98)
HSLhsl(65, 93%, 68%)
HSVhsv(65, 61%, 98%)
CMYKcmyk(5.2%, 0%, 60.6%, 2.4%)
CIE-LABlab(94.51, -23.37, 68.86)
CIE-LCHlch(94.51, 72.72, 108.74°)
OKLaboklab(94.46% -0.0696 0.1574)
OKLCHoklch(94.46% 0.172 113.8)
XYZxyz(70.6741, 86.4674, 24.5198)
Luminance0.8647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF962 #6F62F9
analogous
#F9BB62 #ECF962 #A0F962
triadic
#ECF962 #62ECF9 #F962EC
tetradic
#ECF962 #62F9BB #6F62F9 #F962A0
square
#ECF962 #62F9BB #6F62F9 #F962A0
split-complementary
#ECF962 #62A0F9 #BB62F9
monochromatic
#C6D808 #E5F727 #ECF962 #F3FB9D #FAFED8

Accessibility & contrast

On white

1.15
#ECF962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.29
#ECF962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF962
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF962#FFFFFF#000000##000000
##ECF9621.001.1518.2918.29
#FFFFFF1.151.0021.0021.00
#00000018.2921.001.001.00
##00000018.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE50
Deuteranopia (green-blind)
#FFF16C
Tritanopia (blue-blind)
#FAEBD9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #ecf962;
/* rgb */ color: rgb(236, 249, 98);
/* oklch */ color: oklch(94.5% 0.172 113.8);
Tailwind
colors: {
  custom: {
    50: '#f5fb95',
    500: '#ecf962',
    950: '#000000',
  },
}
SCSS
$custom: #ecf962;
$custom-light: #f5fb95;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf962",
  "rgb": {
    "r": 236,
    "g": 249,
    "b": 98
  },
  "hsl": {
    "h": 65.166,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.94463,
    "c": 0.17205,
    "h": 113.8
  },
  "luminance": 0.86466
}

Semantic roles & 50–950 ramp

primary
#ECF962
secondary
#3B2DD2
accent
#00E614
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170E
muted
#85857F

Preview Lab

Preview with #ECF962

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

Preview Lab → · Contrast checker → · Palette generator →

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