#B9A62F#B9A62F

#B9A62F is a light, vivid yellow. Relative luminance 0.378; OKLCH L 72.1% C 0.134 H 99.8°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#B9A62F
RGBrgb(185, 166, 47)
HSLhsl(52, 59%, 45%)
HSVhsv(52, 75%, 73%)
CMYKcmyk(0%, 10.3%, 74.6%, 27.5%)
CIE-LABlab(67.87, -6.01, 60.19)
CIE-LCHlch(67.87, 60.49, 95.71°)
OKLaboklab(72.1% -0.023 0.1324)
OKLCHoklch(72.1% 0.134 99.8)
XYZxyz(34.1585, 37.7936, 8.1844)
Luminance0.3779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A62F #2F42B9
analogous
#B9612F #B9A62F #87B92F
triadic
#B9A62F #2FB9A6 #A62FB9
tetradic
#B9A62F #2FB961 #2F42B9 #B92F87
square
#B9A62F #2FB961 #2F42B9 #B92F87
split-complementary
#B9A62F #2F87B9 #612FB9
monochromatic
#574E16 #887A23 #B9A62F #D3C152 #DFD383

Accessibility & contrast

On white

2.45
#B9A62F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#B9A62F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A62F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A62F#FFFFFF#000000##000000
##B9A62F1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A119
Deuteranopia (green-blind)
#BCA837
Tritanopia (blue-blind)
#C89A8F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b9a62f;
/* rgb */ color: rgb(185, 166, 47);
/* oklch */ color: oklch(72.1% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#d2c070',
    500: '#b9a62f',
    950: '#000000',
  },
}
SCSS
$custom: #b9a62f;
$custom-light: #d2c070;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a62f",
  "rgb": {
    "r": 185,
    "g": 166,
    "b": 47
  },
  "hsl": {
    "h": 51.739,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.72097,
    "c": 0.13441,
    "h": 99.8
  },
  "luminance": 0.37792
}

Semantic roles & 50–950 ramp

primary
#B9A62F
secondary
#7B86C9
accent
#5BE345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A62F

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

Preview Lab → · Contrast checker → · Palette generator →

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