#B9A12F#B9A12F

#B9A12F 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#B9A12F
RGBrgb(185, 161, 47)
HSLhsl(50, 59%, 45%)
HSVhsv(50, 75%, 73%)
CMYKcmyk(0%, 13%, 74.6%, 27.5%)
CIE-LABlab(66.53, -3.36, 58.92)
CIE-LCHlch(66.53, 59.01, 93.26°)
OKLaboklab(71.04% -0.0154 0.1297)
OKLCHoklch(71.04% 0.131 96.8)
XYZxyz(33.2672, 36.0110, 7.8873)
Luminance0.3601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A12F #2F47B9
analogous
#B95C2F #B9A12F #8CB92F
triadic
#B9A12F #2FB9A1 #A12FB9
tetradic
#B9A12F #2FB95C #2F47B9 #B92F8C
square
#B9A12F #2FB95C #2F47B9 #B92F8C
split-complementary
#B9A12F #2F8CB9 #5C2FB9
monochromatic
#574C16 #887723 #B9A12F #D3BD52 #DFCF83

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9A12F#FFFFFF#000000##000000
##B9A12F1.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)
#B29D1B
Deuteranopia (green-blind)
#B8A536
Tritanopia (blue-blind)
#C8948B
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b9a12f;
/* rgb */ color: rgb(185, 161, 47);
/* oklch */ color: oklch(71.0% 0.131 96.8);
Tailwind
colors: {
  custom: {
    50: '#d2bc70',
    500: '#b9a12f',
    950: '#000000',
  },
}
SCSS
$custom: #b9a12f;
$custom-light: #d2bc70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a12f",
  "rgb": {
    "r": 185,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 49.565,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71035,
    "c": 0.13064,
    "h": 96.8
  },
  "luminance": 0.36009
}

Semantic roles & 50–950 ramp

primary
#B9A12F
secondary
#7B89C9
accent
#61E345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B9A12F

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

Preview Lab → · Contrast checker → · Palette generator →

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