#B8A642#B8A642

#B8A642 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.2% C 0.121 H 99.1°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#B8A642
RGBrgb(184, 166, 66)
HSLhsl(51, 47%, 49%)
HSVhsv(51, 64%, 72%)
CMYKcmyk(0%, 9.8%, 64.1%, 27.8%)
CIE-LABlab(67.92, -5.42, 52.54)
CIE-LCHlch(67.92, 52.81, 95.89°)
OKLaboklab(72.16% -0.0191 0.1196)
OKLCHoklch(72.16% 0.121 99.1)
XYZxyz(34.3882, 37.8577, 10.6491)
Luminance0.3786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A642 #4254B8
analogous
#B86B42 #B8A642 #8FB842
triadic
#B8A642 #42B8A6 #A642B8
tetradic
#B8A642 #42B86B #4254B8 #B8428F
square
#B8A642 #42B86B #4254B8 #B8428F
split-complementary
#B8A642 #428FB8 #6B42B8
monochromatic
#5E5522 #8B7D32 #B8A642 #CBBC6D #DBD19A

Accessibility & contrast

On white

2.45
#B8A642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#B8A642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A642
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A642#FFFFFF#000000##000000
##B8A6421.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A236
Deuteranopia (green-blind)
#BAA847
Tritanopia (blue-blind)
#C69A91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a642;
/* rgb */ color: rgb(184, 166, 66);
/* oklch */ color: oklch(72.2% 0.121 99.1);
Tailwind
colors: {
  custom: {
    50: '#d0c07b',
    500: '#b8a642',
    950: '#000000',
  },
}
SCSS
$custom: #b8a642;
$custom-light: #d0c07b;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a642",
  "rgb": {
    "r": 184,
    "g": 166,
    "b": 66
  },
  "hsl": {
    "h": 50.847,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.72157,
    "c": 0.1211,
    "h": 99.1
  },
  "luminance": 0.37856
}

Semantic roles & 50–950 ramp

primary
#B8A642
secondary
#8F98C7
accent
#65D751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B8A642

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

Preview Lab → · Contrast checker → · Palette generator →

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