#B8B545#B8B545

#B8B545 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.4% C 0.133 H 107.7°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#B8B545
RGBrgb(184, 181, 69)
HSLhsl(58, 45%, 50%)
HSVhsv(58, 63%, 72%)
CMYKcmyk(0%, 1.6%, 62.5%, 27.8%)
CIE-LABlab(72.01, -13.06, 55.61)
CIE-LCHlch(72.01, 57.12, 103.21°)
OKLaboklab(75.42% -0.0405 0.1265)
OKLCHoklch(75.42% 0.133 107.7)
XYZxyz(37.3664, 43.6689, 12.0897)
Luminance0.4367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B545 #4548B8
analogous
#B87C45 #B8B545 #82B845
triadic
#B8B545 #45B8B5 #B545B8
tetradic
#B8B545 #45B87C #4548B8 #B84582
square
#B8B545 #45B87C #4548B8 #B84582
split-complementary
#B8B545 #4582B8 #7C45B8
monochromatic
#5F5D24 #8B8934 #B8B545 #CAC771 #DAD99D

Accessibility & contrast

On white

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

On black

9.73
#B8B545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B545
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B545#FFFFFF#000000##000000
##B8B5451.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE37
Deuteranopia (green-blind)
#C5B24C
Tritanopia (blue-blind)
#C5AA9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b8b545;
/* rgb */ color: rgb(184, 181, 69);
/* oklch */ color: oklch(75.4% 0.133 107.7);
Tailwind
colors: {
  custom: {
    50: '#d0ca7e',
    500: '#b8b545',
    950: '#000000',
  },
}
SCSS
$custom: #b8b545;
$custom-light: #d0ca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b545",
  "rgb": {
    "r": 184,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 58.435,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.75418,
    "c": 0.13284,
    "h": 107.7
  },
  "luminance": 0.43668
}

Semantic roles & 50–950 ramp

primary
#B8B545
secondary
#9293C7
accent
#56D553
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B8B545

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

Preview Lab → · Contrast checker → · Palette generator →

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