#B8A545#B8A545

#B8A545 is a light, moderate yellow. Relative luminance 0.375; OKLCH L 72.0% C 0.118 H 98.1°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#B8A545
RGBrgb(184, 165, 69)
HSLhsl(50, 45%, 50%)
HSVhsv(50, 63%, 72%)
CMYKcmyk(0%, 10.3%, 62.5%, 27.8%)
CIE-LABlab(67.67, -4.69, 50.93)
CIE-LCHlch(67.67, 51.15, 95.27°)
OKLaboklab(71.97% -0.0167 0.1166)
OKLCHoklch(71.97% 0.118 98.1)
XYZxyz(34.2979, 37.5318, 11.0668)
Luminance0.3753 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A545 #4558B8
analogous
#B86C45 #B8A545 #92B845
triadic
#B8A545 #45B8A5 #A545B8
tetradic
#B8A545 #45B86C #4558B8 #B84592
square
#B8A545 #45B86C #4558B8 #B84592
split-complementary
#B8A545 #4592B8 #6C45B8
monochromatic
#5F5524 #8B7D34 #B8A545 #CABB71 #DAD09D

Accessibility & contrast

On white

2.47
#B8A545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#B8A545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A545
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A545#FFFFFF#000000##000000
##B8A5451.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A13A
Deuteranopia (green-blind)
#B9A84A
Tritanopia (blue-blind)
#C69A90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a545;
/* rgb */ color: rgb(184, 165, 69);
/* oklch */ color: oklch(72.0% 0.118 98.1);
Tailwind
colors: {
  custom: {
    50: '#d0bf7d',
    500: '#b8a545',
    950: '#000000',
  },
}
SCSS
$custom: #b8a545;
$custom-light: #d0bf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a545",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 69
  },
  "hsl": {
    "h": 50.087,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.71975,
    "c": 0.11779,
    "h": 98.1
  },
  "luminance": 0.3753
}

Semantic roles & 50–950 ramp

primary
#B8A545
secondary
#929BC7
accent
#68D553
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B8A545

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

Preview Lab → · Contrast checker → · Palette generator →

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