#B7B310

A color in the Yellow, Gold family

#b7b310 is a color in the Yellow, Gold family: RGB(183, 179, 16), HSL(59°, 84%, 39%), CMYK(0%, 2%, 91%, 28%). Closest named color: darkkhaki. Contrast is 2.22:1 on white and 9.47:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#b7b310
RGBrgb(183 179 16)
RGB (legacy)rgb(183, 179, 16)
RGB %rgb(72% 70% 6%)
HSLhsl(59 84% 39%)
HSV / HSBhsv(59, 91%, 72%)
HWBhwb(59 6% 28%)
CMYKcmyk(0%, 2%, 91%, 28%)
CIELAB (D50)lab(71.48 -10.2 70.19)
LCHlch(71.48 70.93 98.27)
OKLaboklab(0.746 -0.049 0.1503)
OKLCHoklch(0.746 0.1581 108.04)
Decimal12038928

Properties

Color ToneYellow, Gold
Closest named colordarkkhaki ΔE 6.4
Closest web-safe color#cccc00
Hue59°
Saturation (HSL / HSV)84% / 91%
Lightness (HSL)39%
Brightness or Value (HSV)72%
Luminance (Rec.601 / Rec.709)63% / 66%
Relative luminance (WCAG)0.4234
Red / Green / Blue183 / 179 / 16

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.22:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
9.47: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 43.5 / -58.7 · As background with white / black text: Lc -48.3 / 60.5

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: #b7b310;
  --color-brand-oklch: oklch(74.6% 0.1581 108.04);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(183 179 16 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b7b310] text-[#b7b310] border-[#b7b310]">