#ECF162#ECF162

#ECF162 is a very light, vivid yellow. Relative luminance 0.816; OKLCH L 92.8% C 0.163 H 111.1°. Best body text is #000000 at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#ECF162
RGBrgb(236, 241, 98)
HSLhsl(62, 84%, 66%)
HSVhsv(62, 59%, 95%)
CMYKcmyk(2.1%, 0%, 59.3%, 5.5%)
CIE-LABlab(92.41, -19.54, 66.58)
CIE-LCHlch(92.41, 69.39, 106.35°)
OKLaboklab(92.78% -0.0588 0.1525)
OKLCHoklch(92.78% 0.163 111.1)
XYZxyz(68.2538, 81.6269, 23.7130)
Luminance0.8163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF162 #6762F1
analogous
#F1AF62 #ECF162 #A5F162
triadic
#ECF162 #62ECF1 #F162EC
tetradic
#ECF162 #62F1AF #6762F1 #F162A5
square
#ECF162 #62F1AF #6762F1 #F162A5
split-complementary
#ECF162 #62A5F1 #AF62F1
monochromatic
#C1C712 #E5EC2A #ECF162 #F3F69A #FAFBD2

Accessibility & contrast

On white

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

On black

17.33
#ECF162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF162
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF162#FFFFFF#000000##000000
##ECF1621.001.2117.3317.33
#FFFFFF1.211.0021.0021.00
#00000017.3321.001.001.00
##00000017.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE751
Deuteranopia (green-blind)
#FFEB6B
Tritanopia (blue-blind)
#FBE3D3
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ecf162;
/* rgb */ color: rgb(236, 241, 98);
/* oklch */ color: oklch(92.8% 0.163 111.1);
Tailwind
colors: {
  custom: {
    50: '#f5f594',
    500: '#ecf162',
    950: '#000000',
  },
}
SCSS
$custom: #ecf162;
$custom-light: #f5f594;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf162",
  "rgb": {
    "r": 236,
    "g": 241,
    "b": 98
  },
  "hsl": {
    "h": 62.098,
    "s": 83.626,
    "l": 66.471
  },
  "oklch": {
    "l": 0.92782,
    "c": 0.16347,
    "h": 111.1
  },
  "luminance": 0.81625
}

Semantic roles & 50–950 ramp

primary
#ECF162
secondary
#3833C4
accent
#05E00D
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170E
muted
#85857F

Preview Lab

Preview with #ECF162

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

Preview Lab → · Contrast checker → · Palette generator →

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