#B9A640#B9A640

#B9A640 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.2% C 0.123 H 98.7°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#B9A640
RGBrgb(185, 166, 64)
HSLhsl(51, 49%, 49%)
HSVhsv(51, 65%, 73%)
CMYKcmyk(0%, 10.3%, 65.4%, 27.5%)
CIE-LABlab(67.99, -5.11, 53.52)
CIE-LCHlch(67.99, 53.76, 95.46°)
OKLaboklab(72.23% -0.0185 0.1213)
OKLCHoklch(72.23% 0.123 98.7)
XYZxyz(34.5707, 37.9585, 10.3552)
Luminance0.3796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A640 #4053B9
analogous
#B96A40 #B9A640 #90B940
triadic
#B9A640 #40B9A6 #A640B9
tetradic
#B9A640 #40B96A #4053B9 #B94090
square
#B9A640 #40B96A #4053B9 #B94090
split-complementary
#B9A640 #4090B9 #6A40B9
monochromatic
#5E5421 #8C7D30 #B9A640 #CCBC6B #DBD198

Accessibility & contrast

On white

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

On black

8.59
#B9A640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A640
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A640#FFFFFF#000000##000000
##B9A6401.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9a640;
/* rgb */ color: rgb(185, 166, 64);
/* oklch */ color: oklch(72.2% 0.123 98.7);
Tailwind
colors: {
  custom: {
    50: '#d1c07a',
    500: '#b9a640',
    950: '#000000',
  },
}
SCSS
$custom: #b9a640;
$custom-light: #d1c07a;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a640",
  "rgb": {
    "r": 185,
    "g": 166,
    "b": 64
  },
  "hsl": {
    "h": 50.579,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.72232,
    "c": 0.12274,
    "h": 98.7
  },
  "luminance": 0.37957
}

Semantic roles & 50–950 ramp

primary
#B9A640
secondary
#8E97C7
accent
#65D850
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B9A640

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

Preview Lab → · Contrast checker → · Palette generator →

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