#B9A52F#B9A52F

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

Color values

HEX#B9A52F
RGBrgb(185, 165, 47)
HSLhsl(51, 59%, 45%)
HSVhsv(51, 75%, 73%)
CMYKcmyk(0%, 10.8%, 74.6%, 27.5%)
CIE-LABlab(67.60, -5.48, 59.94)
CIE-LCHlch(67.60, 60.19, 95.23°)
OKLaboklab(71.88% -0.0215 0.1319)
OKLCHoklch(71.88% 0.134 99.2)
XYZxyz(33.9775, 37.4315, 8.1241)
Luminance0.3743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A52F #2F43B9
analogous
#B9602F #B9A52F #88B92F
triadic
#B9A52F #2FB9A5 #A52FB9
tetradic
#B9A52F #2FB960 #2F43B9 #B92F88
square
#B9A52F #2FB960 #2F43B9 #B92F88
split-complementary
#B9A52F #2F88B9 #602FB9
monochromatic
#574E16 #887923 #B9A52F #D3C052 #DFD283

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9A52F#FFFFFF#000000##000000
##B9A52F1.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)
#B5A119
Deuteranopia (green-blind)
#BBA837
Tritanopia (blue-blind)
#C8998E
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b9a52f;
/* rgb */ color: rgb(185, 165, 47);
/* oklch */ color: oklch(71.9% 0.134 99.2);
Tailwind
colors: {
  custom: {
    50: '#d2bf70',
    500: '#b9a52f',
    950: '#000000',
  },
}
SCSS
$custom: #b9a52f;
$custom-light: #d2bf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a52f",
  "rgb": {
    "r": 185,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 51.304,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71884,
    "c": 0.13363,
    "h": 99.2
  },
  "luminance": 0.3743
}

Semantic roles & 50–950 ramp

primary
#B9A52F
secondary
#7B86C9
accent
#5CE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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