#B8A340#B8A340

#B8A340 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.120 H 97.2°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#B8A340
RGBrgb(184, 163, 64)
HSLhsl(50, 48%, 49%)
HSVhsv(50, 65%, 72%)
CMYKcmyk(0%, 11.4%, 65.2%, 27.8%)
CIE-LABlab(67.09, -3.96, 52.54)
CIE-LCHlch(67.09, 52.69, 94.31°)
OKLaboklab(71.5% -0.0151 0.1193)
OKLCHoklch(71.5% 0.12 97.2)
XYZxyz(33.7913, 36.7565, 10.1643)
Luminance0.3675 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A340 #4055B8
analogous
#B86740 #B8A340 #91B840
triadic
#B8A340 #40B8A3 #A340B8
tetradic
#B8A340 #40B867 #4055B8 #B84091
square
#B8A340 #40B867 #4055B8 #B84091
split-complementary
#B8A340 #4091B8 #6740B8
monochromatic
#5D5320 #8B7B30 #B8A340 #CBBA6A #DBCF97

Accessibility & contrast

On white

2.51
#B8A340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#B8A340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A340
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A340#FFFFFF#000000##000000
##B8A3401.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F34
Deuteranopia (green-blind)
#B8A645
Tritanopia (blue-blind)
#C6978E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b8a340;
/* rgb */ color: rgb(184, 163, 64);
/* oklch */ color: oklch(71.5% 0.120 97.2);
Tailwind
colors: {
  custom: {
    50: '#d0bd79',
    500: '#b8a340',
    950: '#000000',
  },
}
SCSS
$custom: #b8a340;
$custom-light: #d0bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a340",
  "rgb": {
    "r": 184,
    "g": 163,
    "b": 64
  },
  "hsl": {
    "h": 49.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.71501,
    "c": 0.12024,
    "h": 97.2
  },
  "luminance": 0.36755
}

Semantic roles & 50–950 ramp

primary
#B8A340
secondary
#8D97C7
accent
#68D850
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A340

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

Preview Lab → · Contrast checker → · Palette generator →

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