#B9B52F#B9B52F

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

Color values

HEX#B9B52F
RGBrgb(185, 181, 47)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 75%, 73%)
CMYKcmyk(0%, 2.2%, 74.6%, 27.5%)
CIE-LABlab(71.94, -13.81, 64.03)
CIE-LCHlch(71.94, 65.50, 102.18°)
OKLaboklab(75.34% -0.0449 0.1406)
OKLCHoklch(75.34% 0.148 107.7)
XYZxyz(37.0460, 43.5685, 9.1469)
Luminance0.4357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B52F #2F33B9
analogous
#B9702F #B9B52F #78B92F
triadic
#B9B52F #2FB9B5 #B52FB9
tetradic
#B9B52F #2FB970 #2F33B9 #B92F78
square
#B9B52F #2FB970 #2F33B9 #B92F78
split-complementary
#B9B52F #2F78B9 #702FB9
monochromatic
#575616 #888523 #B9B52F #D3CF52 #DFDD83

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B9B52F#FFFFFF#000000##000000
##B9B52F1.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)
#C4AE11
Deuteranopia (green-blind)
#C7B23A
Tritanopia (blue-blind)
#C7A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b52f;
/* rgb */ color: rgb(185, 181, 47);
/* oklch */ color: oklch(75.3% 0.148 107.7);
Tailwind
colors: {
  custom: {
    50: '#d2ca72',
    500: '#b9b52f',
    950: '#000000',
  },
}
SCSS
$custom: #b9b52f;
$custom-light: #d2ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b52f",
  "rgb": {
    "r": 185,
    "g": 181,
    "b": 47
  },
  "hsl": {
    "h": 58.261,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75336,
    "c": 0.14758,
    "h": 107.7
  },
  "luminance": 0.43567
}

Semantic roles & 50–950 ramp

primary
#B9B52F
secondary
#7B7DC9
accent
#4AE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B9B52F

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

Preview Lab → · Contrast checker → · Palette generator →

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