#B8A852#B8A852

#B8A852 is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.8% C 0.109 H 98.9°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B8A852
RGBrgb(184, 168, 82)
HSLhsl(51, 42%, 52%)
HSVhsv(51, 55%, 72%)
CMYKcmyk(0%, 8.7%, 55.4%, 27.8%)
CIE-LABlab(68.61, -5.32, 45.88)
CIE-LCHlch(68.61, 46.18, 96.61°)
OKLaboklab(72.76% -0.0169 0.1074)
OKLCHoklch(72.76% 0.109 98.9)
XYZxyz(35.2940, 38.8062, 13.6122)
Luminance0.3881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A852 #5262B8
analogous
#B87552 #B8A852 #95B852
triadic
#B8A852 #52B8A8 #A852B8
tetradic
#B8A852 #52B875 #5262B8 #B85295
square
#B8A852 #52B875 #5262B8 #B85295
split-complementary
#B8A852 #5295B8 #7552B8
monochromatic
#665C2A #91843C #B8A852 #CABE7D #DCD4A9

Accessibility & contrast

On white

2.40
#B8A852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#B8A852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A852
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A852#FFFFFF#000000##000000
##B8A8521.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A44A
Deuteranopia (green-blind)
#BAAA56
Tritanopia (blue-blind)
#C59D95
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a852;
/* rgb */ color: rgb(184, 168, 82);
/* oklch */ color: oklch(72.8% 0.109 98.9);
Tailwind
colors: {
  custom: {
    50: '#d0c185',
    500: '#b8a852',
    950: '#000000',
  },
}
SCSS
$custom: #b8a852;
$custom-light: #d0c185;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a852",
  "rgb": {
    "r": 184,
    "g": 168,
    "b": 82
  },
  "hsl": {
    "h": 50.588,
    "s": 41.803,
    "l": 52.157
  },
  "oklch": {
    "l": 0.72759,
    "c": 0.10872,
    "h": 98.9
  },
  "luminance": 0.38805
}

Semantic roles & 50–950 ramp

primary
#B8A852
secondary
#9DA4C9
accent
#6AD256
background
#FDFBF8
surface
#FAF7EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B8A852

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

Preview Lab → · Contrast checker → · Palette generator →

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