#B8A940#B8A940

#B8A940 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.8% C 0.125 H 101.1°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#B8A940
RGBrgb(184, 169, 64)
HSLhsl(53, 48%, 49%)
HSVhsv(53, 65%, 72%)
CMYKcmyk(0%, 8.2%, 65.2%, 27.8%)
CIE-LABlab(68.71, -7.13, 54.25)
CIE-LCHlch(68.71, 54.72, 97.49°)
OKLaboklab(72.78% -0.0242 0.1229)
OKLCHoklch(72.78% 0.125 101.1)
XYZxyz(34.8820, 38.9379, 10.5279)
Luminance0.3894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A940 #404FB8
analogous
#B86D40 #B8A940 #8BB840
triadic
#B8A940 #40B8A9 #A940B8
tetradic
#B8A940 #40B86D #404FB8 #B8408B
square
#B8A940 #40B86D #404FB8 #B8408B
split-complementary
#B8A940 #408BB8 #6D40B8
monochromatic
#5D5620 #8B7F30 #B8A940 #CBBF6A #DBD397

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8A940#FFFFFF#000000##000000
##B8A9401.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)
#B8A433
Deuteranopia (green-blind)
#BCAA46
Tritanopia (blue-blind)
#C69D93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b8a940;
/* rgb */ color: rgb(184, 169, 64);
/* oklch */ color: oklch(72.8% 0.125 101.1);
Tailwind
colors: {
  custom: {
    50: '#d0c27a',
    500: '#b8a940',
    950: '#000000',
  },
}
SCSS
$custom: #b8a940;
$custom-light: #d0c27a;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a940",
  "rgb": {
    "r": 184,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 52.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.72779,
    "c": 0.12526,
    "h": 101.1
  },
  "luminance": 0.38936
}

Semantic roles & 50–950 ramp

primary
#B8A940
secondary
#8D94C7
accent
#61D850
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A940

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

Preview Lab → · Contrast checker → · Palette generator →

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