#B7B831#B7B831

#B7B831 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.8% C 0.150 H 109.9°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#B7B831
RGBrgb(183, 184, 49)
HSLhsl(60, 58%, 46%)
HSVhsv(60, 73%, 72%)
CMYKcmyk(0.5%, 0%, 73.4%, 27.8%)
CIE-LABlab(72.61, -16.11, 63.92)
CIE-LCHlch(72.61, 65.92, 104.15°)
OKLaboklab(75.83% -0.051 0.1408)
OKLCHoklch(75.83% 0.15 109.9)
XYZxyz(37.2246, 44.5711, 9.5473)
Luminance0.4457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B831 #3231B8
analogous
#B87531 #B7B831 #74B831
triadic
#B7B831 #31B7B8 #B831B7
tetradic
#B7B831 #31B875 #3231B8 #B83174
square
#B7B831 #31B875 #3231B8 #B83174
split-complementary
#B7B831 #3174B8 #7531B8
monochromatic
#575717 #878824 #B7B831 #D1D255 #DEDE85

Accessibility & contrast

On white

2.12
#B7B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#B7B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B831
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B831#FFFFFF#000000##000000
##B7B8311.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B015
Deuteranopia (green-blind)
#C8B43C
Tritanopia (blue-blind)
#C4AC9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b7b831;
/* rgb */ color: rgb(183, 184, 49);
/* oklch */ color: oklch(75.8% 0.150 109.9);
Tailwind
colors: {
  custom: {
    50: '#d0cd73',
    500: '#b7b831',
    950: '#000000',
  },
}
SCSS
$custom: #b7b831;
$custom-light: #d0cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b831",
  "rgb": {
    "r": 183,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 60.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75834,
    "c": 0.14976,
    "h": 109.9
  },
  "luminance": 0.4457
}

Semantic roles & 50–950 ramp

primary
#B7B831
secondary
#7D7DC8
accent
#47E148
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B831

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

Preview Lab → · Contrast checker → · Palette generator →

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