#B9A342#B9A342

#B9A342 is a light, moderate yellow. Relative luminance 0.369; OKLCH L 71.6% C 0.119 H 96.5°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B9A342
RGBrgb(185, 163, 66)
HSLhsl(49, 47%, 49%)
HSVhsv(49, 64%, 73%)
CMYKcmyk(0%, 11.9%, 64.3%, 27.5%)
CIE-LABlab(67.20, -3.39, 51.80)
CIE-LCHlch(67.20, 51.91, 93.75°)
OKLaboklab(71.62% -0.0133 0.118)
OKLCHoklch(71.62% 0.119 96.5)
XYZxyz(34.0897, 36.9037, 10.4807)
Luminance0.3690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A342 #4258B9
analogous
#B96842 #B9A342 #93B942
triadic
#B9A342 #42B9A3 #A342B9
tetradic
#B9A342 #42B968 #4258B9 #B94293
square
#B9A342 #42B968 #4258B9 #B94293
split-complementary
#B9A342 #4293B9 #6842B9
monochromatic
#5F5422 #8C7B32 #B9A342 #CBBA6D #DBCF9A

Accessibility & contrast

On white

2.51
#B9A342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#B9A342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A342
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A342#FFFFFF#000000##000000
##B9A3421.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F37
Deuteranopia (green-blind)
#B8A747
Tritanopia (blue-blind)
#C7978E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b9a342;
/* rgb */ color: rgb(185, 163, 66);
/* oklch */ color: oklch(71.6% 0.119 96.5);
Tailwind
colors: {
  custom: {
    50: '#d1be7b',
    500: '#b9a342',
    950: '#000000',
  },
}
SCSS
$custom: #b9a342;
$custom-light: #d1be7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a342",
  "rgb": {
    "r": 185,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 48.908,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.71616,
    "c": 0.11873,
    "h": 96.5
  },
  "luminance": 0.36902
}

Semantic roles & 50–950 ramp

primary
#B9A342
secondary
#909AC7
accent
#6AD751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B9A342

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

Preview Lab → · Contrast checker → · Palette generator →

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