#B8A252#B8A252

#B8A252 is a light, moderate yellow. Relative luminance 0.366; OKLCH L 71.5% C 0.104 H 94.3°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#B8A252
RGBrgb(184, 162, 82)
HSLhsl(47, 42%, 52%)
HSVhsv(47, 55%, 72%)
CMYKcmyk(0%, 12%, 55.4%, 27.8%)
CIE-LABlab(67.01, -2.12, 44.00)
CIE-LCHlch(67.01, 44.05, 92.76°)
OKLaboklab(71.49% -0.0077 0.1033)
OKLCHoklch(71.49% 0.104 94.3)
XYZxyz(34.2118, 36.6418, 13.2515)
Luminance0.3664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A252 #5268B8
analogous
#B86F52 #B8A252 #9BB852
triadic
#B8A252 #52B8A2 #A252B8
tetradic
#B8A252 #52B86F #5268B8 #B8529B
square
#B8A252 #52B86F #5268B8 #B8529B
split-complementary
#B8A252 #529BB8 #6F52B8
monochromatic
#66592A #917F3C #B8A252 #CAB97D #DCD1A9

Accessibility & contrast

On white

2.52
#B8A252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#B8A252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A252
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A252#FFFFFF#000000##000000
##B8A2521.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09F4B
Deuteranopia (green-blind)
#B6A655
Tritanopia (blue-blind)
#C59790
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a252;
/* rgb */ color: rgb(184, 162, 82);
/* oklch */ color: oklch(71.5% 0.104 94.3);
Tailwind
colors: {
  custom: {
    50: '#d0bd85',
    500: '#b8a252',
    950: '#000000',
  },
}
SCSS
$custom: #b8a252;
$custom-light: #d0bd85;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a252",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 82
  },
  "hsl": {
    "h": 47.059,
    "s": 41.803,
    "l": 52.157
  },
  "oklch": {
    "l": 0.7149,
    "c": 0.10362,
    "h": 94.3
  },
  "luminance": 0.3664
}

Semantic roles & 50–950 ramp

primary
#B8A252
secondary
#9DA6C9
accent
#71D256
background
#FDFBF8
surface
#FAF6EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B8A252

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

Preview Lab → · Contrast checker → · Palette generator →

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