#B8A52F#B8A52F

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

Color values

HEX#B8A52F
RGBrgb(184, 165, 47)
HSLhsl(52, 59%, 45%)
HSVhsv(52, 74%, 72%)
CMYKcmyk(0%, 10.3%, 74.5%, 27.8%)
CIE-LABlab(67.51, -5.93, 59.82)
CIE-LCHlch(67.51, 60.11, 95.66°)
OKLaboklab(71.79% -0.0226 0.1317)
OKLCHoklch(71.79% 0.134 99.8)
XYZxyz(33.7370, 37.3075, 8.1128)
Luminance0.3731 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A52F #2F42B8
analogous
#B8612F #B8A52F #86B82F
triadic
#B8A52F #2FB8A5 #A52FB8
tetradic
#B8A52F #2FB861 #2F42B8 #B82F86
square
#B8A52F #2FB861 #2F42B8 #B82F86
split-complementary
#B8A52F #2F86B8 #612FB8
monochromatic
#574E16 #877923 #B8A52F #D3C152 #DFD282

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8A52F#FFFFFF#000000##000000
##B8A52F1.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)
#B5A019
Deuteranopia (green-blind)
#BAA737
Tritanopia (blue-blind)
#C6998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a52f;
/* rgb */ color: rgb(184, 165, 47);
/* oklch */ color: oklch(71.8% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#d1bf70',
    500: '#b8a52f',
    950: '#000000',
  },
}
SCSS
$custom: #b8a52f;
$custom-light: #d1bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a52f",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 51.679,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.71789,
    "c": 0.13362,
    "h": 99.8
  },
  "luminance": 0.37306
}

Semantic roles & 50–950 ramp

primary
#B8A52F
secondary
#7B85C8
accent
#5BE245
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B8A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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