#B9A231#B9A231

#B9A231 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.3% C 0.130 H 97.3°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#B9A231
RGBrgb(185, 162, 49)
HSLhsl(50, 58%, 46%)
HSVhsv(50, 74%, 73%)
CMYKcmyk(0%, 12.4%, 73.5%, 27.5%)
CIE-LABlab(66.81, -3.80, 58.44)
CIE-LCHlch(66.81, 58.56, 93.72°)
OKLaboklab(71.26% -0.0165 0.1291)
OKLCHoklch(71.26% 0.13 97.3)
XYZxyz(33.4840, 36.3784, 8.1632)
Luminance0.3638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A231 #3148B9
analogous
#B95E31 #B9A231 #8CB931
triadic
#B9A231 #31B9A2 #A231B9
tetradic
#B9A231 #31B95E #3148B9 #B9318C
square
#B9A231 #31B95E #3148B9 #B9318C
split-complementary
#B9A231 #318CB9 #5E31B9
monochromatic
#584D17 #897824 #B9A231 #D2BD55 #DFD086

Accessibility & contrast

On white

2.54
#B9A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#B9A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A231
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A231#FFFFFF#000000##000000
##B9A2311.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E1E
Deuteranopia (green-blind)
#B8A638
Tritanopia (blue-blind)
#C8968C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b9a231;
/* rgb */ color: rgb(185, 162, 49);
/* oklch */ color: oklch(71.3% 0.130 97.3);
Tailwind
colors: {
  custom: {
    50: '#d2bd71',
    500: '#b9a231',
    950: '#000000',
  },
}
SCSS
$custom: #b9a231;
$custom-light: #d2bd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a231",
  "rgb": {
    "r": 185,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 49.853,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71261,
    "c": 0.13015,
    "h": 97.3
  },
  "luminance": 0.36377
}

Semantic roles & 50–950 ramp

primary
#B9A231
secondary
#7D8AC8
accent
#61E146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A231

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

Preview Lab → · Contrast checker → · Palette generator →

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