#B7B52B#B7B52B

#B7B52B is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.1% C 0.150 H 108.7°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#B7B52B
RGBrgb(183, 181, 43)
HSLhsl(59, 62%, 44%)
HSVhsv(59, 77%, 72%)
CMYKcmyk(0%, 1.1%, 76.5%, 28.2%)
CIE-LABlab(71.75, -14.84, 65.09)
CIE-LCHlch(71.75, 66.76, 102.85°)
OKLaboklab(75.14% -0.048 0.1422)
OKLCHoklch(75.14% 0.15 108.7)
XYZxyz(36.4898, 43.2906, 8.7188)
Luminance0.4329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B52B #2B2DB7
analogous
#B76F2B #B7B52B #73B72B
triadic
#B7B52B #2BB7B5 #B52BB7
tetradic
#B7B52B #2BB76F #2B2DB7 #B72B73
square
#B7B52B #2BB76F #2B2DB7 #B72B73
split-complementary
#B7B52B #2B73B7 #6F2BB7
monochromatic
#545314 #85841F #B7B52B #D5D34B #E0DF7C

Accessibility & contrast

On white

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

On black

9.66
#B7B52B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B52B
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B52B#FFFFFF#000000##000000
##B7B52B1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD04
Deuteranopia (green-blind)
#C6B237
Tritanopia (blue-blind)
#C4A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b7b52b;
/* rgb */ color: rgb(183, 181, 43);
/* oklch */ color: oklch(75.1% 0.150 108.7);
Tailwind
colors: {
  custom: {
    50: '#d0ca70',
    500: '#b7b52b',
    950: '#000000',
  },
}
SCSS
$custom: #b7b52b;
$custom-light: #d0ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b52b",
  "rgb": {
    "r": 183,
    "g": 181,
    "b": 43
  },
  "hsl": {
    "h": 59.143,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.75139,
    "c": 0.15007,
    "h": 108.7
  },
  "luminance": 0.43289
}

Semantic roles & 50–950 ramp

primary
#B7B52B
secondary
#7576C9
accent
#45E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B52B

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

Preview Lab → · Contrast checker → · Palette generator →

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