#B7B331#B7B331

#B7B331 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.7% C 0.145 H 107.6°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#B7B331
RGBrgb(183, 179, 49)
HSLhsl(58, 58%, 45%)
HSVhsv(58, 73%, 72%)
CMYKcmyk(0%, 2.2%, 73.2%, 28.2%)
CIE-LABlab(71.24, -13.57, 62.62)
CIE-LCHlch(71.24, 64.07, 102.22°)
OKLaboklab(74.74% -0.0439 0.138)
OKLCHoklch(74.74% 0.145 107.6)
XYZxyz(36.2043, 42.5305, 9.2072)
Luminance0.4253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B331 #3135B7
analogous
#B77031 #B7B331 #78B731
triadic
#B7B331 #31B7B3 #B331B7
tetradic
#B7B331 #31B770 #3135B7 #B73178
square
#B7B331 #31B770 #3135B7 #B73178
split-complementary
#B7B331 #3178B7 #7031B7
monochromatic
#565517 #878424 #B7B331 #D1CD54 #DEDB84

Accessibility & contrast

On white

2.21
#B7B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#B7B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B331
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B331#FFFFFF#000000##000000
##B7B3311.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC17
Deuteranopia (green-blind)
#C4B13B
Tritanopia (blue-blind)
#C4A79A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b331;
/* rgb */ color: rgb(183, 179, 49);
/* oklch */ color: oklch(74.7% 0.145 107.6);
Tailwind
colors: {
  custom: {
    50: '#d0c973',
    500: '#b7b331',
    950: '#000000',
  },
}
SCSS
$custom: #b7b331;
$custom-light: #d0c973;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b331",
  "rgb": {
    "r": 183,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 58.209,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74737,
    "c": 0.14486,
    "h": 107.6
  },
  "luminance": 0.42529
}

Semantic roles & 50–950 ramp

primary
#B7B331
secondary
#7C7FC8
accent
#4BE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B331

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

Preview Lab → · Contrast checker → · Palette generator →

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