#B8A451#B8A451

#B8A451 is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.9% C 0.106 H 96.0°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#B8A451
RGBrgb(184, 164, 81)
HSLhsl(48, 42%, 52%)
HSVhsv(48, 56%, 72%)
CMYKcmyk(0%, 10.9%, 56%, 27.8%)
CIE-LABlab(67.53, -3.27, 45.10)
CIE-LCHlch(67.53, 45.22, 94.15°)
OKLaboklab(71.9% -0.0111 0.1056)
OKLCHoklch(71.9% 0.106 96)
XYZxyz(34.5291, 37.3369, 13.1709)
Luminance0.3734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A451 #5165B8
analogous
#B87151 #B8A451 #98B851
triadic
#B8A451 #51B8A4 #A451B8
tetradic
#B8A451 #51B871 #5165B8 #B85198
square
#B8A451 #51B871 #5165B8 #B85198
split-complementary
#B8A451 #5198B8 #7151B8
monochromatic
#655A29 #91803B #B8A451 #CABB7C #DBD1A8

Accessibility & contrast

On white

2.48
#B8A451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#B8A451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A451
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A451#FFFFFF#000000##000000
##B8A4511.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A149
Deuteranopia (green-blind)
#B8A755
Tritanopia (blue-blind)
#C59991
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b8a451;
/* rgb */ color: rgb(184, 164, 81);
/* oklch */ color: oklch(71.9% 0.106 96.0);
Tailwind
colors: {
  custom: {
    50: '#d0be84',
    500: '#b8a451',
    950: '#000000',
  },
}
SCSS
$custom: #b8a451;
$custom-light: #d0be84;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a451",
  "rgb": {
    "r": 184,
    "g": 164,
    "b": 81
  },
  "hsl": {
    "h": 48.35,
    "s": 42.041,
    "l": 51.961
  },
  "oklch": {
    "l": 0.71899,
    "c": 0.1062,
    "h": 96
  },
  "luminance": 0.37335
}

Semantic roles & 50–950 ramp

primary
#B8A451
secondary
#9CA5C9
accent
#6ED256
background
#FDFBF8
surface
#FAF6EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B8A451

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

Preview Lab → · Contrast checker → · Palette generator →

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