#B8A542#B8A542

#B8A542 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.9% C 0.120 H 98.4°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#B8A542
RGBrgb(184, 165, 66)
HSLhsl(50, 47%, 49%)
HSVhsv(50, 64%, 72%)
CMYKcmyk(0%, 10.3%, 64.1%, 27.8%)
CIE-LABlab(67.65, -4.89, 52.25)
CIE-LCHlch(67.65, 52.48, 95.35°)
OKLaboklab(71.94% -0.0176 0.119)
OKLCHoklch(71.94% 0.12 98.4)
XYZxyz(34.2071, 37.4955, 10.5887)
Luminance0.3749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A542 #4255B8
analogous
#B86A42 #B8A542 #90B842
triadic
#B8A542 #42B8A5 #A542B8
tetradic
#B8A542 #42B86A #4255B8 #B84290
square
#B8A542 #42B86A #4255B8 #B84290
split-complementary
#B8A542 #4290B8 #6A42B8
monochromatic
#5E5422 #8B7D32 #B8A542 #CBBB6D #DBD09A

Accessibility & contrast

On white

2.47
#B8A542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#B8A542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A542
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A542#FFFFFF#000000##000000
##B8A5421.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A136
Deuteranopia (green-blind)
#B9A847
Tritanopia (blue-blind)
#C69990
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a542;
/* rgb */ color: rgb(184, 165, 66);
/* oklch */ color: oklch(71.9% 0.120 98.4);
Tailwind
colors: {
  custom: {
    50: '#d0bf7b',
    500: '#b8a542',
    950: '#000000',
  },
}
SCSS
$custom: #b8a542;
$custom-light: #d0bf7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a542",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 66
  },
  "hsl": {
    "h": 50.339,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71944,
    "c": 0.12026,
    "h": 98.4
  },
  "luminance": 0.37494
}

Semantic roles & 50–950 ramp

primary
#B8A542
secondary
#8F98C7
accent
#67D751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B8A542

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

Preview Lab → · Contrast checker → · Palette generator →

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