#B8A342#B8A342

#B8A342 is a light, moderate yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.119 H 97.0°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#B8A342
RGBrgb(184, 163, 66)
HSLhsl(49, 47%, 49%)
HSVhsv(49, 64%, 72%)
CMYKcmyk(0%, 11.4%, 64.1%, 27.8%)
CIE-LABlab(67.11, -3.83, 51.67)
CIE-LCHlch(67.11, 51.81, 94.24°)
OKLaboklab(71.52% -0.0145 0.1177)
OKLCHoklch(71.52% 0.119 97)
XYZxyz(33.8492, 36.7797, 10.4694)
Luminance0.3678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A342 #4257B8
analogous
#B86842 #B8A342 #92B842
triadic
#B8A342 #42B8A3 #A342B8
tetradic
#B8A342 #42B868 #4257B8 #B84292
square
#B8A342 #42B868 #4257B8 #B84292
split-complementary
#B8A342 #4292B8 #6842B8
monochromatic
#5E5322 #8B7B32 #B8A342 #CBBA6D #DBCF9A

Accessibility & contrast

On white

2.51
#B8A342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#B8A342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A342
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A342#FFFFFF#000000##000000
##B8A3421.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F37
Deuteranopia (green-blind)
#B8A647
Tritanopia (blue-blind)
#C6978E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a342;
/* rgb */ color: rgb(184, 163, 66);
/* oklch */ color: oklch(71.5% 0.119 97.0);
Tailwind
colors: {
  custom: {
    50: '#d0be7b',
    500: '#b8a342',
    950: '#000000',
  },
}
SCSS
$custom: #b8a342;
$custom-light: #d0be7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a342",
  "rgb": {
    "r": 184,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 49.322,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.7152,
    "c": 0.11863,
    "h": 97
  },
  "luminance": 0.36778
}

Semantic roles & 50–950 ramp

primary
#B8A342
secondary
#8F99C7
accent
#69D751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B8A342

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

Preview Lab → · Contrast checker → · Palette generator →

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