#B7B731#B7B731

#B7B731 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.6% C 0.149 H 109.5°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#B7B731
RGBrgb(183, 183, 49)
HSLhsl(60, 58%, 45%)
HSVhsv(60, 73%, 72%)
CMYKcmyk(0%, 0%, 73.2%, 28.2%)
CIE-LABlab(72.33, -15.61, 63.66)
CIE-LCHlch(72.33, 65.55, 103.77°)
OKLaboklab(75.61% -0.0496 0.1402)
OKLCHoklch(75.61% 0.149 109.5)
XYZxyz(37.0176, 44.1571, 9.4783)
Luminance0.4416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B731 #3131B7
analogous
#B77431 #B7B731 #74B731
triadic
#B7B731 #31B7B7 #B731B7
tetradic
#B7B731 #31B774 #3131B7 #B73174
square
#B7B731 #31B774 #3131B7 #B73174
split-complementary
#B7B731 #3174B7 #7431B7
monochromatic
#565617 #878724 #B7B731 #D1D154 #DEDE84

Accessibility & contrast

On white

2.14
#B7B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.83
#B7B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B731
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B731#FFFFFF#000000##000000
##B7B7311.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C8B33C
Tritanopia (blue-blind)
#C4AB9D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b7b731;
/* rgb */ color: rgb(183, 183, 49);
/* oklch */ color: oklch(75.6% 0.149 109.5);
Tailwind
colors: {
  custom: {
    50: '#d0cc73',
    500: '#b7b731',
    950: '#000000',
  },
}
SCSS
$custom: #b7b731;
$custom-light: #d0cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b731",
  "rgb": {
    "r": 183,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75614,
    "c": 0.14876,
    "h": 109.5
  },
  "luminance": 0.44156
}

Semantic roles & 50–950 ramp

primary
#B7B731
secondary
#7C7CC8
accent
#47E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B731

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

Preview Lab → · Contrast checker → · Palette generator →

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