#B8A152#B8A152

#B8A152 is a light, moderate yellow. Relative luminance 0.363; OKLCH L 71.3% C 0.103 H 93.4°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#B8A152
RGBrgb(184, 161, 82)
HSLhsl(46, 42%, 52%)
HSVhsv(46, 55%, 72%)
CMYKcmyk(0%, 12.5%, 55.4%, 27.8%)
CIE-LABlab(66.74, -1.58, 43.69)
CIE-LCHlch(66.74, 43.72, 92.07°)
OKLaboklab(71.28% -0.0061 0.1027)
OKLCHoklch(71.28% 0.103 93.4)
XYZxyz(34.0363, 36.2909, 13.1930)
Luminance0.3629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A152 #5269B8
analogous
#B86E52 #B8A152 #9CB852
triadic
#B8A152 #52B8A1 #A152B8
tetradic
#B8A152 #52B86E #5269B8 #B8529C
square
#B8A152 #52B86E #5269B8 #B8529C
split-complementary
#B8A152 #529CB8 #6E52B8
monochromatic
#66582A #917E3C #B8A152 #CAB97D #DCD0A9

Accessibility & contrast

On white

2.54
#B8A152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#B8A152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A152
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A152#FFFFFF#000000##000000
##B8A1521.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E4B
Deuteranopia (green-blind)
#B5A555
Tritanopia (blue-blind)
#C5968F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b8a152;
/* rgb */ color: rgb(184, 161, 82);
/* oklch */ color: oklch(71.3% 0.103 93.4);
Tailwind
colors: {
  custom: {
    50: '#d0bc85',
    500: '#b8a152',
    950: '#000000',
  },
}
SCSS
$custom: #b8a152;
$custom-light: #d0bc85;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a152",
  "rgb": {
    "r": 184,
    "g": 161,
    "b": 82
  },
  "hsl": {
    "h": 46.471,
    "s": 41.803,
    "l": 52.157
  },
  "oklch": {
    "l": 0.7128,
    "c": 0.10284,
    "h": 93.4
  },
  "luminance": 0.36289
}

Semantic roles & 50–950 ramp

primary
#B8A152
secondary
#9DA7C9
accent
#72D256
background
#FDFBF8
surface
#FAF6EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B8A152

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

Preview Lab → · Contrast checker → · Palette generator →

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