#B8A534#B8A534

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

Color values

HEX#B8A534
RGBrgb(184, 165, 52)
HSLhsl(51, 56%, 46%)
HSVhsv(51, 72%, 72%)
CMYKcmyk(0%, 10.3%, 71.7%, 27.8%)
CIE-LABlab(67.54, -5.69, 57.97)
CIE-LCHlch(67.54, 58.25, 95.61°)
OKLaboklab(71.82% -0.0215 0.1287)
OKLCHoklch(71.82% 0.131 99.5)
XYZxyz(33.8437, 37.3502, 8.6748)
Luminance0.3735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A534 #3447B8
analogous
#B86334 #B8A534 #89B834
triadic
#B8A534 #34B8A5 #A534B8
tetradic
#B8A534 #34B863 #3447B8 #B83489
square
#B8A534 #34B863 #3447B8 #B83489
split-complementary
#B8A534 #3489B8 #6334B8
monochromatic
#594F19 #887A27 #B8A534 #D0BF59 #DED189

Accessibility & contrast

On white

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

On black

8.47
#B8A534 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A534
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A534#FFFFFF#000000##000000
##B8A5341.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A122
Deuteranopia (green-blind)
#BAA73B
Tritanopia (blue-blind)
#C6998F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a534;
/* rgb */ color: rgb(184, 165, 52);
/* oklch */ color: oklch(71.8% 0.131 99.5);
Tailwind
colors: {
  custom: {
    50: '#d1bf73',
    500: '#b8a534',
    950: '#000000',
  },
}
SCSS
$custom: #b8a534;
$custom-light: #d1bf73;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a534",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 52
  },
  "hsl": {
    "h": 51.364,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71824,
    "c": 0.1305,
    "h": 99.5
  },
  "luminance": 0.37349
}

Semantic roles & 50–950 ramp

primary
#B8A534
secondary
#808BC8
accent
#5EDF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B8A534

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

Preview Lab → · Contrast checker → · Palette generator →

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