#E2CC21

A color in the Yellow, Gold family

#e2cc21 is a color in the Yellow, Gold family: RGB(226, 204, 33), HSL(53°, 77%, 51%), CMYK(0%, 10%, 85%, 11%). Closest named color: gold. Contrast is 1.63:1 on white and 12.89:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#e2cc21
RGBrgb(226 204 33)
RGB (legacy)rgb(226, 204, 33)
RGB %rgb(89% 80% 13%)
HSLhsl(53 77% 51%)
HSV / HSBhsv(53, 85%, 89%)
HWBhwb(53 13% 11%)
CMYKcmyk(0%, 10%, 85%, 11%)
CIELAB (D50)lab(82 -3.69 77.06)
LCHlch(82 77.15 92.74)
OKLaboklab(0.8381 -0.0325 0.1655)
OKLCHoklch(0.8381 0.1687 101.12)
Decimal14863393

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 5.4
Closest web-safe color#cccc33
Hue53°
Saturation (HSL / HSV)77% / 85%
Lightness (HSL)51%
Brightness or Value (HSV)89%
Luminance (Rec.601 / Rec.709)75% / 77%
Relative luminance (WCAG)0.5946
Red / Green / Blue226 / 204 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.63:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
12.89:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 27.9 / -75.1 · As background with white / black text: Lc -31.4 / 75.9

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #e2cc21;
  --color-brand-oklch: oklch(83.81% 0.1687 101.12);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(226 204 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#e2cc21] text-[#e2cc21] border-[#e2cc21]">