#8A9C21

A color in the Yellow, Gold family

#8a9c21 is a color in the Yellow, Gold family: RGB(138, 156, 33), HSL(69°, 65%, 37%), CMYK(12%, 0%, 79%, 39%). Closest named color: olivedrab. Contrast is 3.06:1 on white and 6.86:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a9c21
RGBrgb(138 156 33)
RGB (legacy)rgb(138, 156, 33)
RGB %rgb(54% 61% 13%)
HSLhsl(69 65% 37%)
HSV / HSBhsv(69, 79%, 61%)
HWBhwb(69 13% 39%)
CMYKcmyk(12%, 0%, 79%, 39%)
CIELAB (D50)lab(61.29 -18.18 56.48)
LCHlch(61.29 59.34 107.84)
OKLaboklab(0.6566 -0.0665 0.1251)
OKLCHoklch(0.6566 0.1417 118)
Decimal9083937

Properties

Color ToneYellow, Gold
Closest named colorolivedrab ΔE 6.1
Closest web-safe color#999933
Hue69°
Saturation (HSL / HSV)65% / 79%
Lightness (HSL)37%
Brightness or Value (HSV)61%
Luminance (Rec.601 / Rec.709)54% / 56%
Relative luminance (WCAG)0.2929
Red / Green / Blue138 / 156 / 33

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 57.3 / -44.4 · As background with white / black text: Lc -62.7 / 46.7

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: #8a9c21;
  --color-brand-oklch: oklch(65.66% 0.1417 118);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 156 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a9c21] text-[#8a9c21] border-[#8a9c21]">