#B9B52C#B9B52C

#B9B52C is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.3% C 0.149 H 107.8°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#B9B52C
RGBrgb(185, 181, 44)
HSLhsl(58, 62%, 45%)
HSVhsv(58, 76%, 73%)
CMYKcmyk(0%, 2.2%, 76.2%, 27.5%)
CIE-LABlab(71.92, -13.94, 64.99)
CIE-LCHlch(71.92, 66.47, 102.10°)
OKLaboklab(75.32% -0.0455 0.1421)
OKLCHoklch(75.32% 0.149 107.8)
XYZxyz(36.9876, 43.5451, 8.8391)
Luminance0.4354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B52C #2C30B9
analogous
#B96F2C #B9B52C #76B92C
triadic
#B9B52C #2CB9B5 #B52CB9
tetradic
#B9B52C #2CB96F #2C30B9 #B92C76
square
#B9B52C #2CB96F #2C30B9 #B92C76
split-complementary
#B9B52C #2C76B9 #6F2CB9
monochromatic
#565414 #888520 #B9B52C #D5D14D #E1DE7F

Accessibility & contrast

On white

2.16
#B9B52C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#B9B52C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B52C
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B52C#FFFFFF#000000##000000
##B9B52C1.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE08
Deuteranopia (green-blind)
#C7B237
Tritanopia (blue-blind)
#C7A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b52c;
/* rgb */ color: rgb(185, 181, 44);
/* oklch */ color: oklch(75.3% 0.149 107.8);
Tailwind
colors: {
  custom: {
    50: '#d2ca71',
    500: '#b9b52c',
    950: '#000000',
  },
}
SCSS
$custom: #b9b52c;
$custom-light: #d2ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b52c",
  "rgb": {
    "r": 185,
    "g": 181,
    "b": 44
  },
  "hsl": {
    "h": 58.298,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75318,
    "c": 0.14919,
    "h": 107.8
  },
  "luminance": 0.43544
}

Semantic roles & 50–950 ramp

primary
#B9B52C
secondary
#787AC9
accent
#48E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B52C

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

Preview Lab → · Contrast checker → · Palette generator →

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