#9E9D21

A color in the Yellow, Gold family

#9e9d21 is a color in the Yellow, Gold family: RGB(158, 157, 33), HSL(60°, 65%, 37%), CMYK(0%, 1%, 79%, 38%). Closest named color: darkgoldenrod. Contrast is 2.88:1 on white and 7.3:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#9e9d21
RGBrgb(158 157 33)
RGB (legacy)rgb(158, 157, 33)
RGB %rgb(62% 62% 13%)
HSLhsl(60 65% 37%)
HSV / HSBhsv(60, 79%, 62%)
HWBhwb(60 13% 38%)
CMYKcmyk(0%, 1%, 79%, 38%)
CIELAB (D50)lab(63.24 -9.99 58.93)
LCHlch(63.24 59.77 99.62)
OKLaboklab(0.6756 -0.0447 0.1293)
OKLCHoklch(0.6756 0.1368 109.08)
Decimal10394913

Properties

Color ToneYellow, Gold
Closest named colordarkgoldenrod ΔE 6.8
Closest web-safe color#999933
Hue60°
Saturation (HSL / HSV)65% / 79%
Lightness (HSL)37%
Brightness or Value (HSV)62%
Luminance (Rec.601 / Rec.709)56% / 58%
Relative luminance (WCAG)0.3149
Red / Green / Blue158 / 157 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.88:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
7.30: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 54.9 / -46.9 · As background with white / black text: Lc -60.2 / 49.2

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: #9e9d21;
  --color-brand-oklch: oklch(67.56% 0.1368 109.08);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(158 157 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#9e9d21] text-[#9e9d21] border-[#9e9d21]">