#B8A538#B8A538

#B8A538 is a light, vivid yellow. Relative luminance 0.374; OKLCH L 71.9% C 0.128 H 99.2°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#B8A538
RGBrgb(184, 165, 56)
HSLhsl(51, 53%, 47%)
HSVhsv(51, 70%, 72%)
CMYKcmyk(0%, 10.3%, 69.6%, 27.8%)
CIE-LABlab(67.57, -5.48, 56.42)
CIE-LCHlch(67.57, 56.68, 95.55°)
OKLaboklab(71.86% -0.0204 0.1262)
OKLCHoklch(71.86% 0.128 99.2)
XYZxyz(33.9377, 37.3877, 9.1696)
Luminance0.3739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A538 #384BB8
analogous
#B86538 #B8A538 #8BB838
triadic
#B8A538 #38B8A5 #A538B8
tetradic
#B8A538 #38B865 #384BB8 #B8388B
square
#B8A538 #38B865 #384BB8 #B8388B
split-complementary
#B8A538 #388BB8 #6538B8
monochromatic
#5A511B #897B2A #B8A538 #CEBE5F #DDD18E

Accessibility & contrast

On white

2.48
#B8A538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#B8A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A538
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A538#FFFFFF#000000##000000
##B8A5381.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A128
Deuteranopia (green-blind)
#BAA83E
Tritanopia (blue-blind)
#C6998F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b8a538;
/* rgb */ color: rgb(184, 165, 56);
/* oklch */ color: oklch(71.9% 0.128 99.2);
Tailwind
colors: {
  custom: {
    50: '#d1bf75',
    500: '#b8a538',
    950: '#000000',
  },
}
SCSS
$custom: #b8a538;
$custom-light: #d1bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a538",
  "rgb": {
    "r": 184,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 51.094,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71855,
    "c": 0.12779,
    "h": 99.2
  },
  "luminance": 0.37386
}

Semantic roles & 50–950 ramp

primary
#B8A538
secondary
#858FC7
accent
#61DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B8A538

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

Preview Lab → · Contrast checker → · Palette generator →

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