#B7B52C#B7B52C

#B7B52C 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#B7B52C
RGBrgb(183, 181, 44)
HSLhsl(59, 61%, 45%)
HSVhsv(59, 76%, 72%)
CMYKcmyk(0%, 1.1%, 76%, 28.2%)
CIE-LABlab(71.76, -14.80, 64.78)
CIE-LCHlch(71.76, 66.45, 102.87°)
OKLaboklab(75.15% -0.0478 0.1417)
OKLCHoklch(75.15% 0.15 108.7)
XYZxyz(36.5083, 43.2981, 8.8166)
Luminance0.4330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B52C #2C2EB7
analogous
#B7702C #B7B52C #73B72C
triadic
#B7B52C #2CB7B5 #B52CB7
tetradic
#B7B52C #2CB770 #2C2EB7 #B72C73
square
#B7B52C #2CB770 #2C2EB7 #B72C73
split-complementary
#B7B52C #2C73B7 #702CB7
monochromatic
#545314 #868420 #B7B52C #D4D24C #E0DE7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7B52C#FFFFFF#000000##000000
##B7B52C1.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)
#C4AD08
Deuteranopia (green-blind)
#C6B237
Tritanopia (blue-blind)
#C4A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b7b52c;
/* rgb */ color: rgb(183, 181, 44);
/* oklch */ color: oklch(75.1% 0.150 108.7);
Tailwind
colors: {
  custom: {
    50: '#d0ca71',
    500: '#b7b52c',
    950: '#000000',
  },
}
SCSS
$custom: #b7b52c;
$custom-light: #d0ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b52c",
  "rgb": {
    "r": 183,
    "g": 181,
    "b": 44
  },
  "hsl": {
    "h": 59.137,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.75145,
    "c": 0.14955,
    "h": 108.7
  },
  "luminance": 0.43297
}

Semantic roles & 50–950 ramp

primary
#B7B52C
secondary
#7678C8
accent
#46E443
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B52C

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

Preview Lab → · Contrast checker → · Palette generator →

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