#B9A42E#B9A42E

#B9A42E is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.7% C 0.133 H 98.7°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#B9A42E
RGBrgb(185, 164, 46)
HSLhsl(51, 60%, 45%)
HSVhsv(51, 75%, 73%)
CMYKcmyk(0%, 11.4%, 75.1%, 27.5%)
CIE-LABlab(67.33, -5.00, 60.04)
CIE-LCHlch(67.33, 60.25, 94.76°)
OKLaboklab(71.66% -0.0202 0.1319)
OKLCHoklch(71.66% 0.133 98.7)
XYZxyz(33.7779, 37.0642, 7.9592)
Luminance0.3706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A42E #2E43B9
analogous
#B95E2E #B9A42E #89B92E
triadic
#B9A42E #2EB9A4 #A42EB9
tetradic
#B9A42E #2EB95E #2E43B9 #B92E89
square
#B9A42E #2EB95E #2E43B9 #B92E89
split-complementary
#B9A42E #2E89B9 #5E2EB9
monochromatic
#574D16 #887922 #B9A42E #D4C051 #E0D282

Accessibility & contrast

On white

2.50
#B9A42E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#B9A42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A42E
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A42E#FFFFFF#000000##000000
##B9A42E1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A018
Deuteranopia (green-blind)
#BAA736
Tritanopia (blue-blind)
#C8978D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b9a42e;
/* rgb */ color: rgb(185, 164, 46);
/* oklch */ color: oklch(71.7% 0.133 98.7);
Tailwind
colors: {
  custom: {
    50: '#d2be70',
    500: '#b9a42e',
    950: '#000000',
  },
}
SCSS
$custom: #b9a42e;
$custom-light: #d2be70;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a42e",
  "rgb": {
    "r": 185,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 50.935,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.71664,
    "c": 0.13345,
    "h": 98.7
  },
  "luminance": 0.37062
}

Semantic roles & 50–950 ramp

primary
#B9A42E
secondary
#7A86C9
accent
#5CE344
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #B9A42E

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

Preview Lab → · Contrast checker → · Palette generator →

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