#B2B821

A color in the Yellow, Gold family

#b2b821 is a color in the Yellow, Gold family: RGB(178, 184, 33), HSL(62°, 70%, 43%), CMYK(3%, 0%, 82%, 28%). Closest named color: yellowgreen. Contrast is 2.15:1 on white and 9.77:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#b2b821
RGBrgb(178 184 33)
RGB (legacy)rgb(178, 184, 33)
RGB %rgb(70% 72% 13%)
HSLhsl(62 70% 43%)
HSV / HSBhsv(62, 82%, 72%)
HWBhwb(62 13% 28%)
CMYKcmyk(3%, 0%, 82%, 28%)
CIELAB (D50)lab(72.47 -14.46 67.42)
LCHlch(72.47 68.95 102.1)
OKLaboklab(0.7533 -0.0597 0.1471)
OKLCHoklch(0.7533 0.1587 112.1)
Decimal11712545

Properties

Color ToneYellow, Gold
Closest named coloryellowgreen ΔE 5.9
Closest web-safe color#99cc33
Hue62°
Saturation (HSL / HSV)70% / 82%
Lightness (HSL)43%
Brightness or Value (HSV)72%
Luminance (Rec.601 / Rec.709)65% / 67%
Relative luminance (WCAG)0.4386
Red / Green / Blue178 / 184 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.15:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
9.77: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 42 / -60.2 · As background with white / black text: Lc -46.7 / 61.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: #b2b821;
  --color-brand-oklch: oklch(75.33% 0.1587 112.1);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(178 184 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b2b821] text-[#b2b821] border-[#b2b821]">