#B8B52F#B8B52F

#B8B52F 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#B8B52F
RGBrgb(184, 181, 47)
HSLhsl(59, 59%, 45%)
HSVhsv(59, 74%, 72%)
CMYKcmyk(0%, 1.6%, 74.5%, 27.8%)
CIE-LABlab(71.86, -14.25, 63.92)
CIE-LCHlch(71.86, 65.49, 102.56°)
OKLaboklab(75.25% -0.0461 0.1404)
OKLCHoklch(75.25% 0.148 108.2)
XYZxyz(36.8055, 43.4445, 9.1356)
Luminance0.4344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B52F #2F32B8
analogous
#B8702F #B8B52F #76B82F
triadic
#B8B52F #2FB8B5 #B52FB8
tetradic
#B8B52F #2FB870 #2F32B8 #B82F76
square
#B8B52F #2FB870 #2F32B8 #B82F76
split-complementary
#B8B52F #2F76B8 #702FB8
monochromatic
#575516 #878523 #B8B52F #D3D052 #DFDD82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8B52F#FFFFFF#000000##000000
##B8B52F1.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)
#C4AE11
Deuteranopia (green-blind)
#C6B23A
Tritanopia (blue-blind)
#C5A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b8b52f;
/* rgb */ color: rgb(184, 181, 47);
/* oklch */ color: oklch(75.2% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#d1ca72',
    500: '#b8b52f',
    950: '#000000',
  },
}
SCSS
$custom: #b8b52f;
$custom-light: #d1ca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b52f",
  "rgb": {
    "r": 184,
    "g": 181,
    "b": 47
  },
  "hsl": {
    "h": 58.686,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75249,
    "c": 0.14775,
    "h": 108.2
  },
  "luminance": 0.43443
}

Semantic roles & 50–950 ramp

primary
#B8B52F
secondary
#7B7CC8
accent
#49E245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B8B52F

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

Preview Lab → · Contrast checker → · Palette generator →

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