#B9B52D#B9B52D

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

Color values

HEX#B9B52D
RGBrgb(185, 181, 45)
HSLhsl(58, 61%, 45%)
HSVhsv(58, 76%, 73%)
CMYKcmyk(0%, 2.2%, 75.7%, 27.5%)
CIE-LABlab(71.93, -13.90, 64.68)
CIE-LCHlch(71.93, 66.15, 102.13°)
OKLaboklab(75.32% -0.0453 0.1416)
OKLCHoklch(75.32% 0.149 107.7)
XYZxyz(37.0066, 43.5528, 8.9393)
Luminance0.4355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B52D #2D31B9
analogous
#B96F2D #B9B52D #77B92D
triadic
#B9B52D #2DB9B5 #B52DB9
tetradic
#B9B52D #2DB96F #2D31B9 #B92D77
square
#B9B52D #2DB96F #2D31B9 #B92D77
split-complementary
#B9B52D #2D77B9 #6F2DB9
monochromatic
#575515 #888521 #B9B52D #D4D04F #E0DD80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B52D#FFFFFF#000000##000000
##B9B52D1.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)
#C4AE0B
Deuteranopia (green-blind)
#C7B238
Tritanopia (blue-blind)
#C7A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b52d;
/* rgb */ color: rgb(185, 181, 45);
/* oklch */ color: oklch(75.3% 0.149 107.7);
Tailwind
colors: {
  custom: {
    50: '#d2ca71',
    500: '#b9b52d',
    950: '#000000',
  },
}
SCSS
$custom: #b9b52d;
$custom-light: #d2ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b52d",
  "rgb": {
    "r": 185,
    "g": 181,
    "b": 45
  },
  "hsl": {
    "h": 58.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.75324,
    "c": 0.14866,
    "h": 107.7
  },
  "luminance": 0.43551
}

Semantic roles & 50–950 ramp

primary
#B9B52D
secondary
#797BC9
accent
#48E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B52D

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

Preview Lab → · Contrast checker → · Palette generator →

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