#E7CD21

A color in the Yellow, Gold family

#e7cd21 is a color in the Yellow, Gold family: RGB(231, 205, 33), HSL(52°, 80%, 52%), CMYK(0%, 11%, 86%, 9%). Closest named color: gold. Contrast is 1.6:1 on white and 13.15:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#e7cd21
RGBrgb(231 205 33)
RGB (legacy)rgb(231, 205, 33)
RGB %rgb(91% 80% 13%)
HSLhsl(52 80% 52%)
HSV / HSBhsv(52, 86%, 91%)
HWBhwb(52 13% 9%)
CMYKcmyk(0%, 11%, 86%, 9%)
CIELAB (D50)lab(82.72 -2.06 77.85)
LCHlch(82.72 77.88 91.52)
OKLaboklab(0.8448 -0.0282 0.1669)
OKLCHoklch(0.8448 0.1692 99.58)
Decimal15191329

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 4.6
Closest web-safe color#ffcc33
Hue52°
Saturation (HSL / HSV)80% / 86%
Lightness (HSL)52%
Brightness or Value (HSV)91%
Luminance (Rec.601 / Rec.709)76% / 78%
Relative luminance (WCAG)0.6076
Red / Green / Blue231 / 205 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.60:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
13.15: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 26.8 / -76.2 · As background with white / black text: Lc -30.2 / 77

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: #e7cd21;
  --color-brand-oklch: oklch(84.48% 0.1692 99.58);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(231 205 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#e7cd21] text-[#e7cd21] border-[#e7cd21]">