#B8B52E#B8B52E

#B8B52E is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.2% C 0.148 H 108.2°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#B8B52E
RGBrgb(184, 181, 46)
HSLhsl(59, 60%, 45%)
HSVhsv(59, 75%, 72%)
CMYKcmyk(0%, 1.6%, 75%, 27.8%)
CIE-LABlab(71.85, -14.29, 64.25)
CIE-LCHlch(71.85, 65.82, 102.54°)
OKLaboklab(75.24% -0.0463 0.1409)
OKLCHoklch(75.24% 0.148 108.2)
XYZxyz(36.7856, 43.4366, 9.0306)
Luminance0.4344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B52E #2E31B8
analogous
#B8702E #B8B52E #76B82E
triadic
#B8B52E #2EB8B5 #B52EB8
tetradic
#B8B52E #2EB870 #2E31B8 #B82E76
square
#B8B52E #2EB870 #2E31B8 #B82E76
split-complementary
#B8B52E #2E76B8 #702EB8
monochromatic
#565516 #878522 #B8B52E #D3D050 #DFDD81

Accessibility & contrast

On white

2.17
#B8B52E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#B8B52E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B52E
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B52E#FFFFFF#000000##000000
##B8B52E1.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE0F
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#C5A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b8b52e;
/* rgb */ color: rgb(184, 181, 46);
/* oklch */ color: oklch(75.2% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#d1ca71',
    500: '#b8b52e',
    950: '#000000',
  },
}
SCSS
$custom: #b8b52e;
$custom-light: #d1ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b52e",
  "rgb": {
    "r": 184,
    "g": 181,
    "b": 46
  },
  "hsl": {
    "h": 58.696,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.75243,
    "c": 0.1483,
    "h": 108.2
  },
  "luminance": 0.43435
}

Semantic roles & 50–950 ramp

primary
#B8B52E
secondary
#797BC8
accent
#48E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B52E

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

Preview Lab → · Contrast checker → · Palette generator →

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