#B9A12E#B9A12E

#B9A12E is a light, vivid yellow. Relative luminance 0.360; OKLCH L 71.0% C 0.131 H 96.8°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#B9A12E
RGBrgb(185, 161, 46)
HSLhsl(50, 60%, 45%)
HSVhsv(50, 75%, 73%)
CMYKcmyk(0%, 13%, 75.1%, 27.5%)
CIE-LABlab(66.52, -3.40, 59.28)
CIE-LCHlch(66.52, 59.38, 93.28°)
OKLaboklab(71.03% -0.0156 0.1303)
OKLCHoklch(71.03% 0.131 96.8)
XYZxyz(33.2473, 36.0030, 7.7823)
Luminance0.3600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A12E #2E46B9
analogous
#B95B2E #B9A12E #8CB92E
triadic
#B9A12E #2EB9A1 #A12EB9
tetradic
#B9A12E #2EB95B #2E46B9 #B92E8C
square
#B9A12E #2EB95B #2E46B9 #B92E8C
split-complementary
#B9A12E #2E8CB9 #5B2EB9
monochromatic
#574C16 #887622 #B9A12E #D4BD51 #E0D082

Accessibility & contrast

On white

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

On black

8.20
#B9A12E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A12E
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A12E#FFFFFF#000000##000000
##B9A12E1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D19
Deuteranopia (green-blind)
#B8A535
Tritanopia (blue-blind)
#C8948B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b9a12e;
/* rgb */ color: rgb(185, 161, 46);
/* oklch */ color: oklch(71.0% 0.131 96.8);
Tailwind
colors: {
  custom: {
    50: '#d2bc6f',
    500: '#b9a12e',
    950: '#000000',
  },
}
SCSS
$custom: #b9a12e;
$custom-light: #d2bc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a12e",
  "rgb": {
    "r": 185,
    "g": 161,
    "b": 46
  },
  "hsl": {
    "h": 49.64,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.71028,
    "c": 0.13124,
    "h": 96.8
  },
  "luminance": 0.36001
}

Semantic roles & 50–950 ramp

primary
#B9A12E
secondary
#7A88C9
accent
#60E344
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B9A12E

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

Preview Lab → · Contrast checker → · Palette generator →

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