#B9A642#B9A642

#B9A642 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.3% C 0.121 H 98.5°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#B9A642
RGBrgb(185, 166, 66)
HSLhsl(50, 47%, 49%)
HSVhsv(50, 64%, 73%)
CMYKcmyk(0%, 10.3%, 64.3%, 27.5%)
CIE-LABlab(68.01, -4.99, 52.66)
CIE-LCHlch(68.01, 52.90, 95.41°)
OKLaboklab(72.25% -0.0179 0.1198)
OKLCHoklch(72.25% 0.121 98.5)
XYZxyz(34.6287, 37.9816, 10.6604)
Luminance0.3798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A642 #4255B9
analogous
#B96B42 #B9A642 #91B942
triadic
#B9A642 #42B9A6 #A642B9
tetradic
#B9A642 #42B96B #4255B9 #B94291
square
#B9A642 #42B96B #4255B9 #B94291
split-complementary
#B9A642 #4291B9 #6B42B9
monochromatic
#5F5522 #8C7E32 #B9A642 #CBBC6D #DBD19A

Accessibility & contrast

On white

2.44
#B9A642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#B9A642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A642
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A642#FFFFFF#000000##000000
##B9A6421.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A236
Deuteranopia (green-blind)
#BBA947
Tritanopia (blue-blind)
#C79A91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b9a642;
/* rgb */ color: rgb(185, 166, 66);
/* oklch */ color: oklch(72.3% 0.121 98.5);
Tailwind
colors: {
  custom: {
    50: '#d1c07b',
    500: '#b9a642',
    950: '#000000',
  },
}
SCSS
$custom: #b9a642;
$custom-light: #d1c07b;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a642",
  "rgb": {
    "r": 185,
    "g": 166,
    "b": 66
  },
  "hsl": {
    "h": 50.42,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.72251,
    "c": 0.12114,
    "h": 98.5
  },
  "luminance": 0.3798
}

Semantic roles & 50–950 ramp

primary
#B9A642
secondary
#9099C7
accent
#66D751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B9A642

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

Preview Lab → · Contrast checker → · Palette generator →

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