#B8A845#B8A845

#B8A845 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.6% C 0.120 H 100.1°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#B8A845
RGBrgb(184, 168, 69)
HSLhsl(52, 45%, 50%)
HSVhsv(52, 63%, 72%)
CMYKcmyk(0%, 8.7%, 62.5%, 27.8%)
CIE-LABlab(68.48, -6.28, 51.81)
CIE-LCHlch(68.48, 52.19, 96.92°)
OKLaboklab(72.61% -0.0212 0.1185)
OKLCHoklch(72.61% 0.12 100.1)
XYZxyz(34.8454, 38.6268, 11.2493)
Luminance0.3862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A845 #4555B8
analogous
#B86E45 #B8A845 #8FB845
triadic
#B8A845 #45B8A8 #A845B8
tetradic
#B8A845 #45B86E #4555B8 #B8458F
square
#B8A845 #45B86E #4555B8 #B8458F
split-complementary
#B8A845 #458FB8 #6E45B8
monochromatic
#5F5724 #8B7F34 #B8A845 #CABD71 #DAD29D

Accessibility & contrast

On white

2.41
#B8A845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#B8A845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A845
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A845#FFFFFF#000000##000000
##B8A8451.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A33A
Deuteranopia (green-blind)
#BBAA4A
Tritanopia (blue-blind)
#C59D93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a845;
/* rgb */ color: rgb(184, 168, 69);
/* oklch */ color: oklch(72.6% 0.120 100.1);
Tailwind
colors: {
  custom: {
    50: '#d0c17d',
    500: '#b8a845',
    950: '#000000',
  },
}
SCSS
$custom: #b8a845;
$custom-light: #d0c17d;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a845",
  "rgb": {
    "r": 184,
    "g": 168,
    "b": 69
  },
  "hsl": {
    "h": 51.652,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.72613,
    "c": 0.12036,
    "h": 100.1
  },
  "luminance": 0.38625
}

Semantic roles & 50–950 ramp

primary
#B8A845
secondary
#9299C7
accent
#65D553
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B8A845

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

Preview Lab → · Contrast checker → · Palette generator →

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