#B8A42D#B8A42D

#B8A42D is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.6% C 0.134 H 99.3°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#B8A42D
RGBrgb(184, 164, 45)
HSLhsl(51, 61%, 45%)
HSVhsv(51, 76%, 72%)
CMYKcmyk(0%, 10.9%, 75.5%, 27.8%)
CIE-LABlab(67.23, -5.48, 60.27)
CIE-LCHlch(67.23, 60.52, 95.20°)
OKLaboklab(71.56% -0.0216 0.1323)
OKLCHoklch(71.56% 0.134 99.3)
XYZxyz(33.5179, 36.9324, 7.8453)
Luminance0.3693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A42D #2D41B8
analogous
#B85F2D #B8A42D #87B82D
triadic
#B8A42D #2DB8A4 #A42DB8
tetradic
#B8A42D #2DB85F #2D41B8 #B82D87
square
#B8A42D #2DB85F #2D41B8 #B82D87
split-complementary
#B8A42D #2D87B8 #5F2DB8
monochromatic
#564C15 #877821 #B8A42D #D4C14E #E0D280

Accessibility & contrast

On white

2.50
#B8A42D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#B8A42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A42D
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A42D#FFFFFF#000000##000000
##B8A42D1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A016
Deuteranopia (green-blind)
#BAA735
Tritanopia (blue-blind)
#C7988D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a42d;
/* rgb */ color: rgb(184, 164, 45);
/* oklch */ color: oklch(71.6% 0.134 99.3);
Tailwind
colors: {
  custom: {
    50: '#d1be6f',
    500: '#b8a42d',
    950: '#000000',
  },
}
SCSS
$custom: #b8a42d;
$custom-light: #d1be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a42d",
  "rgb": {
    "r": 184,
    "g": 164,
    "b": 45
  },
  "hsl": {
    "h": 51.367,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71562,
    "c": 0.13401,
    "h": 99.3
  },
  "luminance": 0.36931
}

Semantic roles & 50–950 ramp

primary
#B8A42D
secondary
#7884C9
accent
#5BE444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A42D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B8A42D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva