#B7B931#B7B931

#B7B931 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.1% C 0.151 H 110.4°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#B7B931
RGBrgb(183, 185, 49)
HSLhsl(61, 58%, 46%)
HSVhsv(61, 74%, 73%)
CMYKcmyk(1.1%, 0%, 73.5%, 27.5%)
CIE-LABlab(72.88, -16.62, 64.18)
CIE-LCHlch(72.88, 66.30, 104.52°)
OKLaboklab(76.05% -0.0524 0.1413)
OKLCHoklch(76.05% 0.151 110.4)
XYZxyz(37.4331, 44.9880, 9.6168)
Luminance0.4499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B931 #3331B9
analogous
#B97731 #B7B931 #73B931
triadic
#B7B931 #31B7B9 #B931B7
tetradic
#B7B931 #31B977 #3331B9 #B93173
square
#B7B931 #31B977 #3331B9 #B93173
split-complementary
#B7B931 #3173B9 #7731B9
monochromatic
#575817 #878924 #B7B931 #D0D255 #DEDF86

Accessibility & contrast

On white

2.10
#B7B931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.00
#B7B931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B931
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B931#FFFFFF#000000##000000
##B7B9311.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B114
Deuteranopia (green-blind)
#C9B53C
Tritanopia (blue-blind)
#C4AD9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b7b931;
/* rgb */ color: rgb(183, 185, 49);
/* oklch */ color: oklch(76.1% 0.151 110.4);
Tailwind
colors: {
  custom: {
    50: '#d0cd73',
    500: '#b7b931',
    950: '#000000',
  },
}
SCSS
$custom: #b7b931;
$custom-light: #d0cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b931",
  "rgb": {
    "r": 183,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 60.882,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.76054,
    "c": 0.15076,
    "h": 110.4
  },
  "luminance": 0.44987
}

Semantic roles & 50–950 ramp

primary
#B7B931
secondary
#7F7DC8
accent
#46E149
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B931

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

Preview Lab → · Contrast checker → · Palette generator →

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