#B9A22F#B9A22F

#B9A22F is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.2% C 0.131 H 97.4°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#B9A22F
RGBrgb(185, 162, 47)
HSLhsl(50, 59%, 45%)
HSVhsv(50, 75%, 73%)
CMYKcmyk(0%, 12.4%, 74.6%, 27.5%)
CIE-LABlab(66.80, -3.89, 59.17)
CIE-LCHlch(66.80, 59.30, 93.76°)
OKLaboklab(71.25% -0.0169 0.1303)
OKLCHoklch(71.25% 0.131 97.4)
XYZxyz(33.4427, 36.3619, 7.9458)
Luminance0.3636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A22F #2F46B9
analogous
#B95D2F #B9A22F #8BB92F
triadic
#B9A22F #2FB9A2 #A22FB9
tetradic
#B9A22F #2FB95D #2F46B9 #B92F8B
square
#B9A22F #2FB95D #2F46B9 #B92F8B
split-complementary
#B9A22F #2F8BB9 #5D2FB9
monochromatic
#574D16 #887723 #B9A22F #D3BE52 #DFD083

Accessibility & contrast

On white

2.54
#B9A22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#B9A22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A22F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A22F#FFFFFF#000000##000000
##B9A22F1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1A
Deuteranopia (green-blind)
#B9A636
Tritanopia (blue-blind)
#C8958C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b9a22f;
/* rgb */ color: rgb(185, 162, 47);
/* oklch */ color: oklch(71.2% 0.131 97.4);
Tailwind
colors: {
  custom: {
    50: '#d2bd70',
    500: '#b9a22f',
    950: '#000000',
  },
}
SCSS
$custom: #b9a22f;
$custom-light: #d2bd70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a22f",
  "rgb": {
    "r": 185,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 50,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71247,
    "c": 0.13137,
    "h": 97.4
  },
  "luminance": 0.3636
}

Semantic roles & 50–950 ramp

primary
#B9A22F
secondary
#7B88C9
accent
#5FE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A22F

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

Preview Lab → · Contrast checker → · Palette generator →

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