#ECD478#ECD478

#ECD478 is a very light, moderate yellow. Relative luminance 0.663; OKLCH L 87.1% C 0.116 H 95.1°. Best body text is #000000 at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#ECD478
RGBrgb(236, 212, 120)
HSLhsl(48, 75%, 70%)
HSVhsv(48, 49%, 93%)
CMYKcmyk(0%, 10.2%, 49.2%, 7.5%)
CIE-LABlab(85.14, -3.41, 48.23)
CIE-LCHlch(85.14, 48.36, 94.05°)
OKLaboklab(87.08% -0.0103 0.1152)
OKLCHoklch(87.08% 0.116 95.1)
XYZxyz(61.5277, 66.2784, 27.3177)
Luminance0.6628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD478 #7890EC
analogous
#EC9A78 #ECD478 #CAEC78
triadic
#ECD478 #78ECD4 #D478EC
tetradic
#ECD478 #78EC9A #7890EC #EC78CA
square
#ECD478 #78EC9A #7890EC #EC78CA
split-complementary
#ECD478 #78CAEC #9A78EC
monochromatic
#CDA81D #E4C342 #ECD478 #F4E5AE #FBF6E3

Accessibility & contrast

On white

1.47
#ECD478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.26
#ECD478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD478
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD478#FFFFFF#000000##000000
##ECD4781.001.4714.2614.26
#FFFFFF1.471.0021.0021.00
#00000014.2621.001.001.00
##00000014.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D070
Deuteranopia (green-blind)
#EBD87C
Tritanopia (blue-blind)
#FBC8BE
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #ecd478;
/* rgb */ color: rgb(236, 212, 120);
/* oklch */ color: oklch(87.1% 0.116 95.1);
Tailwind
colors: {
  custom: {
    50: '#f4e1a1',
    500: '#ecd478',
    950: '#000000',
  },
}
SCSS
$custom: #ecd478;
$custom-light: #f4e1a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd478",
  "rgb": {
    "r": 236,
    "g": 212,
    "b": 120
  },
  "hsl": {
    "h": 47.586,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.87075,
    "c": 0.11561,
    "h": 95.1
  },
  "luminance": 0.66276
}

Semantic roles & 50–950 ramp

primary
#ECD478
secondary
#435EC5
accent
#38D70E
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD478

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

Preview Lab → · Contrast checker → · Palette generator →

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