#B9B72C#B9B72C

#B9B72C is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.8% C 0.151 H 108.7°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#B9B72C
RGBrgb(185, 183, 44)
HSLhsl(59, 62%, 45%)
HSVhsv(59, 76%, 73%)
CMYKcmyk(0%, 1.1%, 76.2%, 27.5%)
CIE-LABlab(72.47, -14.96, 65.49)
CIE-LCHlch(72.47, 67.18, 102.86°)
OKLaboklab(75.76% -0.0484 0.1432)
OKLCHoklch(75.76% 0.151 108.7)
XYZxyz(37.3971, 44.3643, 8.9756)
Luminance0.4436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B72C #2C2EB9
analogous
#B9712C #B9B72C #74B92C
triadic
#B9B72C #2CB9B7 #B72CB9
tetradic
#B9B72C #2CB971 #2C2EB9 #B92C74
square
#B9B72C #2CB971 #2C2EB9 #B92C74
split-complementary
#B9B72C #2C74B9 #712CB9
monochromatic
#565514 #888620 #B9B72C #D5D34D #E1DF7F

Accessibility & contrast

On white

2.13
#B9B72C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#B9B72C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B72C
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B72C#FFFFFF#000000##000000
##B9B72C1.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF06
Deuteranopia (green-blind)
#C8B438
Tritanopia (blue-blind)
#C7AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b9b72c;
/* rgb */ color: rgb(185, 183, 44);
/* oklch */ color: oklch(75.8% 0.151 108.7);
Tailwind
colors: {
  custom: {
    50: '#d2cc71',
    500: '#b9b72c',
    950: '#000000',
  },
}
SCSS
$custom: #b9b72c;
$custom-light: #d2cc71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b72c",
  "rgb": {
    "r": 185,
    "g": 183,
    "b": 44
  },
  "hsl": {
    "h": 59.149,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75756,
    "c": 0.1511,
    "h": 108.7
  },
  "luminance": 0.44363
}

Semantic roles & 50–950 ramp

primary
#B9B72C
secondary
#7879C9
accent
#45E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B72C

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

Preview Lab → · Contrast checker → · Palette generator →

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