#8A8A2A

A color in the Yellow, Gold family

#8a8a2a is a color in the Yellow, Gold family: RGB(138, 138, 42), HSL(60°, 53%, 35%), CMYK(0%, 0%, 70%, 46%). Closest named color: olive. Contrast is 3.65:1 on white and 5.75:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a8a2a
RGBrgb(138 138 42)
RGB (legacy)rgb(138, 138, 42)
RGB %rgb(54% 54% 16%)
HSLhsl(60 53% 35%)
HSV / HSBhsv(60, 70%, 54%)
HWBhwb(60 16% 46%)
CMYKcmyk(0%, 0%, 70%, 46%)
CIELAB (D50)lab(56.1 -9 48.61)
LCHlch(56.1 49.44 100.49)
OKLaboklab(0.615 -0.0385 0.1094)
OKLCHoklch(0.615 0.116 109.38)
Decimal9079338

Properties

Color ToneYellow, Gold
Closest named colorolive ΔE 3.6
Closest web-safe color#999933
Hue60°
Saturation (HSL / HSV)53% / 70%
Lightness (HSL)35%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)50% / 51%
Relative luminance (WCAG)0.2375
Red / Green / Blue138 / 138 / 42

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.65:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.75: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 64 / -37.7 · As background with white / black text: Lc -69.5 / 40.1

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: #8a8a2a;
  --color-brand-oklch: oklch(61.5% 0.116 109.38);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 138 42 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a8a2a] text-[#8a8a2a] border-[#8a8a2a]">