#B8A042#B8A042

#B8A042 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.9% C 0.116 H 94.9°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#B8A042
RGBrgb(184, 160, 66)
HSLhsl(48, 47%, 49%)
HSVhsv(48, 64%, 72%)
CMYKcmyk(0%, 13%, 64.1%, 27.8%)
CIE-LABlab(66.31, -2.22, 50.80)
CIE-LCHlch(66.31, 50.85, 92.51°)
OKLaboklab(70.89% -0.0099 0.1159)
OKLCHoklch(70.89% 0.116 94.9)
XYZxyz(33.3229, 35.7270, 10.2940)
Luminance0.3573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A042 #425AB8
analogous
#B86542 #B8A042 #95B842
triadic
#B8A042 #42B8A0 #A042B8
tetradic
#B8A042 #42B865 #425AB8 #B84295
square
#B8A042 #42B865 #425AB8 #B84295
split-complementary
#B8A042 #4295B8 #6542B8
monochromatic
#5E5222 #8B7932 #B8A042 #CBB76D #DBCD9A

Accessibility & contrast

On white

2.58
#B8A042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#B8A042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A042
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A042#FFFFFF#000000##000000
##B8A0421.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D37
Deuteranopia (green-blind)
#B6A447
Tritanopia (blue-blind)
#C6948C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b8a042;
/* rgb */ color: rgb(184, 160, 66);
/* oklch */ color: oklch(70.9% 0.116 94.9);
Tailwind
colors: {
  custom: {
    50: '#d0bb7a',
    500: '#b8a042',
    950: '#000000',
  },
}
SCSS
$custom: #b8a042;
$custom-light: #d0bb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a042",
  "rgb": {
    "r": 184,
    "g": 160,
    "b": 66
  },
  "hsl": {
    "h": 47.797,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.70887,
    "c": 0.11632,
    "h": 94.9
  },
  "luminance": 0.35725
}

Semantic roles & 50–950 ramp

primary
#B8A042
secondary
#8F9AC7
accent
#6CD751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B8A042

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

Preview Lab → · Contrast checker → · Palette generator →

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