#B7B531#B7B531

#B7B531 is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.2% C 0.147 H 108.6°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#B7B531
RGBrgb(183, 181, 49)
HSLhsl(59, 58%, 45%)
HSVhsv(59, 73%, 72%)
CMYKcmyk(0%, 1.1%, 73.2%, 28.2%)
CIE-LABlab(71.78, -14.59, 63.14)
CIE-LCHlch(71.78, 64.80, 103.01°)
OKLaboklab(75.18% -0.0468 0.1391)
OKLCHoklch(75.18% 0.147 108.6)
XYZxyz(36.6081, 43.3379, 9.3418)
Luminance0.4334 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B531 #3133B7
analogous
#B77231 #B7B531 #76B731
triadic
#B7B531 #31B7B5 #B531B7
tetradic
#B7B531 #31B772 #3133B7 #B73176
square
#B7B531 #31B772 #3133B7 #B73176
split-complementary
#B7B531 #3176B7 #7231B7
monochromatic
#565617 #878524 #B7B531 #D1CF54 #DEDD84

Accessibility & contrast

On white

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

On black

9.67
#B7B531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B531
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B531#FFFFFF#000000##000000
##B7B5311.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE16
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#C4A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b7b531;
/* rgb */ color: rgb(183, 181, 49);
/* oklch */ color: oklch(75.2% 0.147 108.6);
Tailwind
colors: {
  custom: {
    50: '#d0ca73',
    500: '#b7b531',
    950: '#000000',
  },
}
SCSS
$custom: #b7b531;
$custom-light: #d0ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b531",
  "rgb": {
    "r": 183,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 59.104,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75175,
    "c": 0.14679,
    "h": 108.6
  },
  "luminance": 0.43337
}

Semantic roles & 50–950 ramp

primary
#B7B531
secondary
#7C7DC8
accent
#49E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B531

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

Preview Lab → · Contrast checker → · Palette generator →

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