#B9A337#B9A337

#B9A337 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.127 H 97.5°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#B9A337
RGBrgb(185, 163, 55)
HSLhsl(50, 54%, 47%)
HSVhsv(50, 70%, 73%)
CMYKcmyk(0%, 11.9%, 70.3%, 27.5%)
CIE-LABlab(67.12, -4.04, 56.40)
CIE-LCHlch(67.12, 56.54, 94.09°)
OKLaboklab(71.52% -0.0165 0.1259)
OKLCHoklch(71.52% 0.127 97.5)
XYZxyz(33.7960, 36.7862, 8.9340)
Luminance0.3679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A337 #374DB9
analogous
#B96237 #B9A337 #8EB937
triadic
#B9A337 #37B9A3 #A337B9
tetradic
#B9A337 #37B962 #374DB9 #B9378E
square
#B9A337 #37B962 #374DB9 #B9378E
split-complementary
#B9A337 #378EB9 #6237B9
monochromatic
#5B501B #8A7929 #B9A337 #CFBC5E #DDD08D

Accessibility & contrast

On white

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

On black

8.36
#B9A337 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A337
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A337#FFFFFF#000000##000000
##B9A3371.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F27
Deuteranopia (green-blind)
#B9A73D
Tritanopia (blue-blind)
#C7978D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b9a337;
/* rgb */ color: rgb(185, 163, 55);
/* oklch */ color: oklch(71.5% 0.127 97.5);
Tailwind
colors: {
  custom: {
    50: '#d2bd74',
    500: '#b9a337',
    950: '#000000',
  },
}
SCSS
$custom: #b9a337;
$custom-light: #d2bd74;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a337",
  "rgb": {
    "r": 185,
    "g": 163,
    "b": 55
  },
  "hsl": {
    "h": 49.846,
    "s": 54.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71518,
    "c": 0.12696,
    "h": 97.5
  },
  "luminance": 0.36785
}

Semantic roles & 50–950 ramp

primary
#B9A337
secondary
#8490C8
accent
#63DE4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #B9A337

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

Preview Lab → · Contrast checker → · Palette generator →

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