#ECD45F#ECD45F

#ECD45F is a very light, vivid yellow. Relative luminance 0.657; OKLCH L 86.8% C 0.139 H 97.8°. Best body text is #000000 at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#ECD45F
RGBrgb(236, 212, 95)
HSLhsl(50, 79%, 65%)
HSVhsv(50, 60%, 93%)
CMYKcmyk(0%, 10.2%, 59.7%, 7.5%)
CIE-LABlab(84.87, -5.37, 59.57)
CIE-LCHlch(84.87, 59.81, 95.15°)
OKLaboklab(86.77% -0.0188 0.1372)
OKLCHoklch(86.77% 0.139 97.8)
XYZxyz(60.2036, 65.7487, 20.3439)
Luminance0.6575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD45F #5F77EC
analogous
#EC8D5F #ECD45F #BEEC5F
triadic
#ECD45F #5FECD4 #D45FEC
tetradic
#ECD45F #5FEC8D #5F77EC #EC5FBE
square
#ECD45F #5FEC8D #5F77EC #EC5FBE
split-complementary
#ECD45F #5FBEEC #8D5FEC
monochromatic
#BA9E16 #E6C528 #ECD45F #F2E396 #F9F1CC

Accessibility & contrast

On white

1.48
#ECD45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.15
#ECD45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD45F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD45F#FFFFFF#000000##000000
##ECD45F1.001.4814.1514.15
#FFFFFF1.481.0021.0021.00
#00000014.1521.001.001.00
##00000014.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CF53
Deuteranopia (green-blind)
#EDD865
Tritanopia (blue-blind)
#FDC6BA
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #ecd45f;
/* rgb */ color: rgb(236, 212, 95);
/* oklch */ color: oklch(86.8% 0.139 97.8);
Tailwind
colors: {
  custom: {
    50: '#f5e090',
    500: '#ecd45f',
    950: '#000000',
  },
}
SCSS
$custom: #ecd45f;
$custom-light: #f5e090;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd45f",
  "rgb": {
    "r": 236,
    "g": 212,
    "b": 95
  },
  "hsl": {
    "h": 49.787,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.86774,
    "c": 0.13852,
    "h": 97.8
  },
  "luminance": 0.65746
}

Semantic roles & 50–950 ramp

primary
#ECD45F
secondary
#364CBA
accent
#2EDB0A
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #ECD45F

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

Preview Lab → · Contrast checker → · Palette generator →

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