#B9A540#B9A540

#B9A540 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 72.0% C 0.122 H 98.0°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#B9A540
RGBrgb(185, 165, 64)
HSLhsl(50, 49%, 49%)
HSVhsv(50, 65%, 73%)
CMYKcmyk(0%, 10.8%, 65.4%, 27.5%)
CIE-LABlab(67.72, -4.58, 53.23)
CIE-LCHlch(67.72, 53.43, 94.92°)
OKLaboklab(72.02% -0.017 0.1207)
OKLCHoklch(72.02% 0.122 98)
XYZxyz(34.3896, 37.5963, 10.2949)
Luminance0.3760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A540 #4054B9
analogous
#B96940 #B9A540 #91B940
triadic
#B9A540 #40B9A5 #A540B9
tetradic
#B9A540 #40B969 #4054B9 #B94091
square
#B9A540 #40B969 #4054B9 #B94091
split-complementary
#B9A540 #4091B9 #6940B9
monochromatic
#5E5421 #8C7C30 #B9A540 #CCBC6B #DBD098

Accessibility & contrast

On white

2.47
#B9A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#B9A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A540
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A540#FFFFFF#000000##000000
##B9A5401.002.478.528.52
#FFFFFF2.471.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A134
Deuteranopia (green-blind)
#BAA845
Tritanopia (blue-blind)
#C79990
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b9a540;
/* rgb */ color: rgb(185, 165, 64);
/* oklch */ color: oklch(72.0% 0.122 98.0);
Tailwind
colors: {
  custom: {
    50: '#d1bf7a',
    500: '#b9a540',
    950: '#000000',
  },
}
SCSS
$custom: #b9a540;
$custom-light: #d1bf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a540",
  "rgb": {
    "r": 185,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 50.083,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.7202,
    "c": 0.12191,
    "h": 98
  },
  "luminance": 0.37595
}

Semantic roles & 50–950 ramp

primary
#B9A540
secondary
#8E97C7
accent
#66D850
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B9A540

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

Preview Lab → · Contrast checker → · Palette generator →

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