#B9B545#B9B545

#B9B545 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.5% C 0.133 H 107.2°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#B9B545
RGBrgb(185, 181, 69)
HSLhsl(58, 46%, 50%)
HSVhsv(58, 63%, 73%)
CMYKcmyk(0%, 2.2%, 62.7%, 27.5%)
CIE-LABlab(72.09, -12.63, 55.72)
CIE-LCHlch(72.09, 57.14, 102.77°)
OKLaboklab(75.5% -0.0393 0.1268)
OKLCHoklch(75.5% 0.133 107.2)
XYZxyz(37.6069, 43.7929, 12.1009)
Luminance0.4379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B545 #4549B9
analogous
#B97B45 #B9B545 #83B945
triadic
#B9B545 #45B9B5 #B545B9
tetradic
#B9B545 #45B97B #4549B9 #B94583
square
#B9B545 #45B97B #4549B9 #B94583
split-complementary
#B9B545 #4583B9 #7B45B9
monochromatic
#605E24 #8C8934 #B9B545 #CAC771 #DBD99E

Accessibility & contrast

On white

2.15
#B9B545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#B9B545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B545
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B545#FFFFFF#000000##000000
##B9B5451.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE37
Deuteranopia (green-blind)
#C6B34C
Tritanopia (blue-blind)
#C6AA9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b9b545;
/* rgb */ color: rgb(185, 181, 69);
/* oklch */ color: oklch(75.5% 0.133 107.2);
Tailwind
colors: {
  custom: {
    50: '#d1ca7e',
    500: '#b9b545',
    950: '#000000',
  },
}
SCSS
$custom: #b9b545;
$custom-light: #d1ca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b545",
  "rgb": {
    "r": 185,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 57.931,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.75504,
    "c": 0.13271,
    "h": 107.2
  },
  "luminance": 0.43792
}

Semantic roles & 50–950 ramp

primary
#B9B545
secondary
#9394C7
accent
#57D552
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9B545

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

Preview Lab → · Contrast checker → · Palette generator →

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