#B8A85B#B8A85B

#B8A85B is a light, moderate yellow. Relative luminance 0.390; OKLCH L 72.9% C 0.100 H 97.9°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#B8A85B
RGBrgb(184, 168, 91)
HSLhsl(50, 40%, 54%)
HSVhsv(50, 51%, 72%)
CMYKcmyk(0%, 8.7%, 50.5%, 27.8%)
CIE-LABlab(68.72, -4.54, 41.55)
CIE-LCHlch(68.72, 41.80, 96.23°)
OKLaboklab(72.88% -0.0136 0.0988)
OKLCHoklch(72.88% 0.1 97.9)
XYZxyz(35.6592, 38.9523, 15.5357)
Luminance0.3895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A85B #5B6BB8
analogous
#B87A5B #B8A85B #9AB85B
triadic
#B8A85B #5BB8A8 #A85BB8
tetradic
#B8A85B #5BB87A #5B6BB8 #B85B9A
square
#B8A85B #5BB87A #5B6BB8 #B85B9A
split-complementary
#B8A85B #5B9AB8 #7A5BB8
monochromatic
#6A602E #958741 #B8A85B #CABF86 #DDD5B0

Accessibility & contrast

On white

2.39
#B8A85B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#B8A85B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A85B
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A85B#FFFFFF#000000##000000
##B8A85B1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A454
Deuteranopia (green-blind)
#BAAA5E
Tritanopia (blue-blind)
#C49E96
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b8a85b;
/* rgb */ color: rgb(184, 168, 91);
/* oklch */ color: oklch(72.9% 0.100 97.9);
Tailwind
colors: {
  custom: {
    50: '#cfc18b',
    500: '#b8a85b',
    950: '#000000',
  },
}
SCSS
$custom: #b8a85b;
$custom-light: #cfc18b;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a85b",
  "rgb": {
    "r": 184,
    "g": 168,
    "b": 91
  },
  "hsl": {
    "h": 49.677,
    "s": 39.574,
    "l": 53.922
  },
  "oklch": {
    "l": 0.72877,
    "c": 0.09978,
    "h": 97.9
  },
  "luminance": 0.38951
}

Semantic roles & 50–950 ramp

primary
#B8A85B
secondary
#A4AACB
accent
#6DCF58
background
#FCFBF8
surface
#F9F7F0
border
#D2D0CB
text
#14120C
muted
#82817D

Preview Lab

Preview with #B8A85B

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

Preview Lab → · Contrast checker → · Palette generator →

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