#B7B031#B7B031

#B7B031 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.1% C 0.142 H 106.2°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#B7B031
RGBrgb(183, 176, 49)
HSLhsl(57, 58%, 45%)
HSVhsv(57, 73%, 72%)
CMYKcmyk(0%, 3.8%, 73.2%, 28.2%)
CIE-LABlab(70.41, -12.02, 61.84)
CIE-LCHlch(70.41, 63.00, 101.00°)
OKLaboklab(74.08% -0.0396 0.1364)
OKLCHoklch(74.08% 0.142 106.2)
XYZxyz(35.6096, 41.3410, 9.0090)
Luminance0.4134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B031 #3138B7
analogous
#B76D31 #B7B031 #7BB731
triadic
#B7B031 #31B7B0 #B031B7
tetradic
#B7B031 #31B76D #3138B7 #B7317B
square
#B7B031 #31B76D #3138B7 #B7317B
split-complementary
#B7B031 #317BB7 #6D31B7
monochromatic
#565317 #878224 #B7B031 #D1CB54 #DED984

Accessibility & contrast

On white

2.27
#B7B031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#B7B031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B031
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B031#FFFFFF#000000##000000
##B7B0311.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA919
Deuteranopia (green-blind)
#C2AF3A
Tritanopia (blue-blind)
#C5A498
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b7b031;
/* rgb */ color: rgb(183, 176, 49);
/* oklch */ color: oklch(74.1% 0.142 106.2);
Tailwind
colors: {
  custom: {
    50: '#d0c772',
    500: '#b7b031',
    950: '#000000',
  },
}
SCSS
$custom: #b7b031;
$custom-light: #d0c772;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b031",
  "rgb": {
    "r": 183,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 56.866,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74083,
    "c": 0.14202,
    "h": 106.2
  },
  "luminance": 0.4134
}

Semantic roles & 50–950 ramp

primary
#B7B031
secondary
#7C80C8
accent
#4FE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B031

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

Preview Lab → · Contrast checker → · Palette generator →

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