#B8A840#B8A840

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

Color values

HEX#B8A840
RGBrgb(184, 168, 64)
HSLhsl(52, 48%, 49%)
HSVhsv(52, 65%, 72%)
CMYKcmyk(0%, 8.7%, 65.2%, 27.8%)
CIE-LABlab(68.44, -6.61, 53.96)
CIE-LCHlch(68.44, 54.37, 96.98°)
OKLaboklab(72.57% -0.0227 0.1223)
OKLCHoklch(72.57% 0.124 100.5)
XYZxyz(34.6967, 38.5673, 10.4661)
Luminance0.3857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A840 #4050B8
analogous
#B86C40 #B8A840 #8CB840
triadic
#B8A840 #40B8A8 #A840B8
tetradic
#B8A840 #40B86C #4050B8 #B8408C
square
#B8A840 #40B86C #4050B8 #B8408C
split-complementary
#B8A840 #408CB8 #6C40B8
monochromatic
#5D5520 #8B7F30 #B8A840 #CBBE6A #DBD297

Accessibility & contrast

On white

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

On black

8.71
#B8A840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A840
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A840#FFFFFF#000000##000000
##B8A8401.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A333
Deuteranopia (green-blind)
#BCAA46
Tritanopia (blue-blind)
#C69C92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b8a840;
/* rgb */ color: rgb(184, 168, 64);
/* oklch */ color: oklch(72.6% 0.124 100.5);
Tailwind
colors: {
  custom: {
    50: '#d0c17a',
    500: '#b8a840',
    950: '#000000',
  },
}
SCSS
$custom: #b8a840;
$custom-light: #d0c17a;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a840",
  "rgb": {
    "r": 184,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 52,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.72565,
    "c": 0.12439,
    "h": 100.5
  },
  "luminance": 0.38566
}

Semantic roles & 50–950 ramp

primary
#B8A840
secondary
#8D95C7
accent
#62D850
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A840

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

Preview Lab → · Contrast checker → · Palette generator →

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