#B9A545#B9A545

#B9A545 is a light, moderate yellow. Relative luminance 0.377; OKLCH L 72.1% C 0.118 H 97.5°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#B9A545
RGBrgb(185, 165, 69)
HSLhsl(50, 46%, 50%)
HSVhsv(50, 63%, 73%)
CMYKcmyk(0%, 10.8%, 62.7%, 27.5%)
CIE-LABlab(67.77, -4.26, 51.06)
CIE-LCHlch(67.77, 51.23, 94.77°)
OKLaboklab(72.07% -0.0155 0.1169)
OKLCHoklch(72.07% 0.118 97.5)
XYZxyz(34.5384, 37.6558, 11.0781)
Luminance0.3765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A545 #4559B9
analogous
#B96B45 #B9A545 #93B945
triadic
#B9A545 #45B9A5 #A545B9
tetradic
#B9A545 #45B96B #4559B9 #B94593
square
#B9A545 #45B96B #4559B9 #B94593
split-complementary
#B9A545 #4593B9 #6B45B9
monochromatic
#605524 #8C7D34 #B9A545 #CABB71 #DBD09E

Accessibility & contrast

On white

2.46
#B9A545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#B9A545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A545
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A545#FFFFFF#000000##000000
##B9A5451.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A13A
Deuteranopia (green-blind)
#BAA84A
Tritanopia (blue-blind)
#C79A90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b9a545;
/* rgb */ color: rgb(185, 165, 69);
/* oklch */ color: oklch(72.1% 0.118 97.5);
Tailwind
colors: {
  custom: {
    50: '#d1bf7d',
    500: '#b9a545',
    950: '#000000',
  },
}
SCSS
$custom: #b9a545;
$custom-light: #d1bf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a545",
  "rgb": {
    "r": 185,
    "g": 165,
    "b": 69
  },
  "hsl": {
    "h": 49.655,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.72069,
    "c": 0.11787,
    "h": 97.5
  },
  "luminance": 0.37654
}

Semantic roles & 50–950 ramp

primary
#B9A545
secondary
#939CC7
accent
#69D552
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B9A545

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

Preview Lab → · Contrast checker → · Palette generator →

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