#B9A42F#B9A42F

#B9A42F is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.7% C 0.133 H 98.6°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#B9A42F
RGBrgb(185, 164, 47)
HSLhsl(51, 59%, 45%)
HSVhsv(51, 75%, 73%)
CMYKcmyk(0%, 11.4%, 74.6%, 27.5%)
CIE-LABlab(67.33, -4.95, 59.68)
CIE-LCHlch(67.33, 59.89, 94.75°)
OKLaboklab(71.67% -0.0199 0.1314)
OKLCHoklch(71.67% 0.133 98.6)
XYZxyz(33.7978, 37.0721, 8.0642)
Luminance0.3707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A42F #2F44B9
analogous
#B95F2F #B9A42F #89B92F
triadic
#B9A42F #2FB9A4 #A42FB9
tetradic
#B9A42F #2FB95F #2F44B9 #B92F89
square
#B9A42F #2FB95F #2F44B9 #B92F89
split-complementary
#B9A42F #2F89B9 #5F2FB9
monochromatic
#574D16 #887923 #B9A42F #D3BF52 #DFD183

Accessibility & contrast

On white

2.50
#B9A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#B9A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A42F
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A42F#FFFFFF#000000##000000
##B9A42F1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A01A
Deuteranopia (green-blind)
#BAA737
Tritanopia (blue-blind)
#C8978D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b9a42f;
/* rgb */ color: rgb(185, 164, 47);
/* oklch */ color: oklch(71.7% 0.133 98.6);
Tailwind
colors: {
  custom: {
    50: '#d2be70',
    500: '#b9a42f',
    950: '#000000',
  },
}
SCSS
$custom: #b9a42f;
$custom-light: #d2be70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a42f",
  "rgb": {
    "r": 185,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 50.87,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71671,
    "c": 0.13287,
    "h": 98.6
  },
  "luminance": 0.3707
}

Semantic roles & 50–950 ramp

primary
#B9A42F
secondary
#7B87C9
accent
#5DE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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