#B9A02F#B9A02F

#B9A02F is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.130 H 96.1°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#B9A02F
RGBrgb(185, 160, 47)
HSLhsl(49, 59%, 45%)
HSVhsv(49, 75%, 73%)
CMYKcmyk(0%, 13.5%, 74.6%, 27.5%)
CIE-LABlab(66.26, -2.82, 58.66)
CIE-LCHlch(66.26, 58.73, 92.76°)
OKLaboklab(70.82% -0.0139 0.1292)
OKLCHoklch(70.82% 0.13 96.1)
XYZxyz(33.0932, 35.6629, 7.8293)
Luminance0.3566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A02F #2F48B9
analogous
#B95B2F #B9A02F #8DB92F
triadic
#B9A02F #2FB9A0 #A02FB9
tetradic
#B9A02F #2FB95B #2F48B9 #B92F8D
square
#B9A02F #2FB95B #2F48B9 #B92F8D
split-complementary
#B9A02F #2F8DB9 #5B2FB9
monochromatic
#574C16 #887623 #B9A02F #D3BC52 #DFCF83

Accessibility & contrast

On white

2.58
#B9A02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#B9A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A02F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A02F#FFFFFF#000000##000000
##B9A02F1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C1B
Deuteranopia (green-blind)
#B7A436
Tritanopia (blue-blind)
#C8938A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b9a02f;
/* rgb */ color: rgb(185, 160, 47);
/* oklch */ color: oklch(70.8% 0.130 96.1);
Tailwind
colors: {
  custom: {
    50: '#d2bb70',
    500: '#b9a02f',
    950: '#000000',
  },
}
SCSS
$custom: #b9a02f;
$custom-light: #d2bb70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a02f",
  "rgb": {
    "r": 185,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 49.13,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70824,
    "c": 0.12994,
    "h": 96.1
  },
  "luminance": 0.35661
}

Semantic roles & 50–950 ramp

primary
#B9A02F
secondary
#7B89C9
accent
#62E345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B9A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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