#B9A138#B9A138

#B9A138 is a light, vivid yellow. Relative luminance 0.361; OKLCH L 71.1% C 0.125 H 96.1°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#B9A138
RGBrgb(185, 161, 56)
HSLhsl(49, 54%, 47%)
HSVhsv(49, 70%, 73%)
CMYKcmyk(0%, 13%, 69.7%, 27.5%)
CIE-LABlab(66.59, -2.92, 55.46)
CIE-LCHlch(66.59, 55.53, 93.01°)
OKLaboklab(71.1% -0.0132 0.1241)
OKLCHoklch(71.1% 0.125 96.1)
XYZxyz(33.4679, 36.0913, 8.9441)
Luminance0.3609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A138 #3850B9
analogous
#B96038 #B9A138 #91B938
triadic
#B9A138 #38B9A1 #A138B9
tetradic
#B9A138 #38B960 #3850B9 #B93891
square
#B9A138 #38B960 #3850B9 #B93891
split-complementary
#B9A138 #3891B9 #6038B9
monochromatic
#5B4F1C #8A782A #B9A138 #CFBA5F #DDCE8E

Accessibility & contrast

On white

2.56
#B9A138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#B9A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A138
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A138#FFFFFF#000000##000000
##B9A1381.002.568.228.22
#FFFFFF2.561.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E29
Deuteranopia (green-blind)
#B7A53E
Tritanopia (blue-blind)
#C8958C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b9a138;
/* rgb */ color: rgb(185, 161, 56);
/* oklch */ color: oklch(71.1% 0.125 96.1);
Tailwind
colors: {
  custom: {
    50: '#d2bc75',
    500: '#b9a138',
    950: '#000000',
  },
}
SCSS
$custom: #b9a138;
$custom-light: #d2bc75;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a138",
  "rgb": {
    "r": 185,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 48.837,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.71103,
    "c": 0.12478,
    "h": 96.1
  },
  "luminance": 0.3609
}

Semantic roles & 50–950 ramp

primary
#B9A138
secondary
#8592C8
accent
#66DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #B9A138

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

Preview Lab → · Contrast checker → · Palette generator →

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