#B9A040#B9A040

#B9A040 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 71.0% C 0.118 H 94.5°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#B9A040
RGBrgb(185, 160, 64)
HSLhsl(48, 49%, 49%)
HSVhsv(48, 65%, 73%)
CMYKcmyk(0%, 13.5%, 65.4%, 27.5%)
CIE-LABlab(66.39, -1.91, 51.81)
CIE-LCHlch(66.39, 51.85, 92.12°)
OKLaboklab(70.96% -0.0093 0.1177)
OKLCHoklch(70.96% 0.118 94.5)
XYZxyz(33.5054, 35.8278, 10.0001)
Luminance0.3583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A040 #4059B9
analogous
#B96440 #B9A040 #96B940
triadic
#B9A040 #40B9A0 #A040B9
tetradic
#B9A040 #40B964 #4059B9 #B94096
square
#B9A040 #40B964 #4059B9 #B94096
split-complementary
#B9A040 #4096B9 #6440B9
monochromatic
#5E5121 #8C7930 #B9A040 #CCB86B #DBCD98

Accessibility & contrast

On white

2.57
#B9A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#B9A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A040
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A040#FFFFFF#000000##000000
##B9A0401.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D35
Deuteranopia (green-blind)
#B6A545
Tritanopia (blue-blind)
#C7948C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b9a040;
/* rgb */ color: rgb(185, 160, 64);
/* oklch */ color: oklch(71.0% 0.118 94.5);
Tailwind
colors: {
  custom: {
    50: '#d1bb79',
    500: '#b9a040',
    950: '#000000',
  },
}
SCSS
$custom: #b9a040;
$custom-light: #d1bb79;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a040",
  "rgb": {
    "r": 185,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 47.603,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.70964,
    "c": 0.11808,
    "h": 94.5
  },
  "luminance": 0.35826
}

Semantic roles & 50–950 ramp

primary
#B9A040
secondary
#8E9AC7
accent
#6CD850
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B9A040

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

Preview Lab → · Contrast checker → · Palette generator →

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