#B8A540#B8A540

#B8A540 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.9% C 0.122 H 98.6°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#B8A540
RGBrgb(184, 165, 64)
HSLhsl(51, 48%, 49%)
HSVhsv(51, 65%, 72%)
CMYKcmyk(0%, 10.3%, 65.2%, 27.8%)
CIE-LABlab(67.63, -5.02, 53.11)
CIE-LCHlch(67.63, 53.35, 95.40°)
OKLaboklab(71.93% -0.0182 0.1205)
OKLCHoklch(71.93% 0.122 98.6)
XYZxyz(34.1492, 37.4723, 10.2836)
Luminance0.3747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A540 #4053B8
analogous
#B86940 #B8A540 #8FB840
triadic
#B8A540 #40B8A5 #A540B8
tetradic
#B8A540 #40B869 #4053B8 #B8408F
square
#B8A540 #40B869 #4053B8 #B8408F
split-complementary
#B8A540 #408FB8 #6940B8
monochromatic
#5D5420 #8B7C30 #B8A540 #CBBC6A #DBD097

Accessibility & contrast

On white

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

On black

8.49
#B8A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A540
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A540#FFFFFF#000000##000000
##B8A5401.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A134
Deuteranopia (green-blind)
#BAA845
Tritanopia (blue-blind)
#C69990
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a540;
/* rgb */ color: rgb(184, 165, 64);
/* oklch */ color: oklch(71.9% 0.122 98.6);
Tailwind
colors: {
  custom: {
    50: '#d0bf7a',
    500: '#b8a540',
    950: '#000000',
  },
}
SCSS
$custom: #b8a540;
$custom-light: #d0bf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a540",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 50.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.71925,
    "c": 0.12185,
    "h": 98.6
  },
  "luminance": 0.37471
}

Semantic roles & 50–950 ramp

primary
#B8A540
secondary
#8D96C7
accent
#65D850
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A540

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

Preview Lab → · Contrast checker → · Palette generator →

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