#B8A52D#B8A52D

#B8A52D is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.8% C 0.135 H 99.9°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#B8A52D
RGBrgb(184, 165, 45)
HSLhsl(52, 61%, 45%)
HSVhsv(52, 76%, 72%)
CMYKcmyk(0%, 10.3%, 75.5%, 27.8%)
CIE-LABlab(67.50, -6.01, 60.52)
CIE-LCHlch(67.50, 60.82, 95.67°)
OKLaboklab(71.78% -0.0231 0.1328)
OKLCHoklch(71.78% 0.135 99.9)
XYZxyz(33.6976, 37.2917, 7.9052)
Luminance0.3729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A52D #2D40B8
analogous
#B8602D #B8A52D #85B82D
triadic
#B8A52D #2DB8A5 #A52DB8
tetradic
#B8A52D #2DB860 #2D40B8 #B82D85
square
#B8A52D #2DB860 #2D40B8 #B82D85
split-complementary
#B8A52D #2D85B8 #602DB8
monochromatic
#564D15 #877921 #B8A52D #D4C24E #E0D380

Accessibility & contrast

On white

2.48
#B8A52D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#B8A52D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A52D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A52D#FFFFFF#000000##000000
##B8A52D1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b8a52d;
/* rgb */ color: rgb(184, 165, 45);
/* oklch */ color: oklch(71.8% 0.135 99.9);
Tailwind
colors: {
  custom: {
    50: '#d1bf6f',
    500: '#b8a52d',
    950: '#000000',
  },
}
SCSS
$custom: #b8a52d;
$custom-light: #d1bf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a52d",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 45
  },
  "hsl": {
    "h": 51.799,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71776,
    "c": 0.13478,
    "h": 99.9
  },
  "luminance": 0.3729
}

Semantic roles & 50–950 ramp

primary
#B8A52D
secondary
#7883C9
accent
#5AE444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A52D

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

Preview Lab → · Contrast checker → · Palette generator →

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