#B7B431#B7B431

#B7B431 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.146 H 108.1°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#B7B431
RGBrgb(183, 180, 49)
HSLhsl(59, 58%, 45%)
HSVhsv(59, 73%, 72%)
CMYKcmyk(0%, 1.6%, 73.2%, 28.2%)
CIE-LABlab(71.51, -14.08, 62.88)
CIE-LCHlch(71.51, 64.44, 102.62°)
OKLaboklab(74.96% -0.0453 0.1386)
OKLCHoklch(74.96% 0.146 108.1)
XYZxyz(36.4055, 42.9327, 9.2743)
Luminance0.4293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B431 #3134B7
analogous
#B77131 #B7B431 #77B731
triadic
#B7B431 #31B7B4 #B431B7
tetradic
#B7B431 #31B771 #3134B7 #B73177
square
#B7B431 #31B771 #3134B7 #B73177
split-complementary
#B7B431 #3177B7 #7131B7
monochromatic
#565517 #878524 #B7B431 #D1CE54 #DEDC84

Accessibility & contrast

On white

2.19
#B7B431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#B7B431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B431
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B431#FFFFFF#000000##000000
##B7B4311.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD17
Deuteranopia (green-blind)
#C5B13B
Tritanopia (blue-blind)
#C4A89B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b7b431;
/* rgb */ color: rgb(183, 180, 49);
/* oklch */ color: oklch(75.0% 0.146 108.1);
Tailwind
colors: {
  custom: {
    50: '#d0ca73',
    500: '#b7b431',
    950: '#000000',
  },
}
SCSS
$custom: #b7b431;
$custom-light: #d0ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b431",
  "rgb": {
    "r": 183,
    "g": 180,
    "b": 49
  },
  "hsl": {
    "h": 58.657,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74956,
    "c": 0.14582,
    "h": 108.1
  },
  "luminance": 0.42932
}

Semantic roles & 50–950 ramp

primary
#B7B431
secondary
#7C7EC8
accent
#4AE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B431

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

Preview Lab → · Contrast checker → · Palette generator →

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