#B9A534#B9A534

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

Color values

HEX#B9A534
RGBrgb(185, 165, 52)
HSLhsl(51, 56%, 46%)
HSVhsv(51, 72%, 73%)
CMYKcmyk(0%, 10.8%, 71.9%, 27.5%)
CIE-LABlab(67.63, -5.25, 58.10)
CIE-LCHlch(67.63, 58.33, 95.16°)
OKLaboklab(71.92% -0.0203 0.1289)
OKLCHoklch(71.92% 0.131 98.9)
XYZxyz(34.0842, 37.4741, 8.6861)
Luminance0.3747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A534 #3448B9
analogous
#B96234 #B9A534 #8BB934
triadic
#B9A534 #34B9A5 #A534B9
tetradic
#B9A534 #34B962 #3448B9 #B9348B
square
#B9A534 #34B962 #3448B9 #B9348B
split-complementary
#B9A534 #348BB9 #6234B9
monochromatic
#595019 #897A27 #B9A534 #D1BF5A #DED189

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9A534#FFFFFF#000000##000000
##B9A5341.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)
#B5A122
Deuteranopia (green-blind)
#BBA83B
Tritanopia (blue-blind)
#C7998F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b9a534;
/* rgb */ color: rgb(185, 165, 52);
/* oklch */ color: oklch(71.9% 0.131 98.9);
Tailwind
colors: {
  custom: {
    50: '#d2bf73',
    500: '#b9a534',
    950: '#000000',
  },
}
SCSS
$custom: #b9a534;
$custom-light: #d2bf73;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a534",
  "rgb": {
    "r": 185,
    "g": 165,
    "b": 52
  },
  "hsl": {
    "h": 50.977,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71919,
    "c": 0.13052,
    "h": 98.9
  },
  "luminance": 0.37472
}

Semantic roles & 50–950 ramp

primary
#B9A534
secondary
#818CC8
accent
#5FDF48
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A534

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

Preview Lab → · Contrast checker → · Palette generator →

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