#B5B031#B5B031

#B5B031 is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.9% C 0.142 H 107.1°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#B5B031
RGBrgb(181, 176, 49)
HSLhsl(58, 57%, 45%)
HSVhsv(58, 73%, 71%)
CMYKcmyk(0%, 2.8%, 72.9%, 29%)
CIE-LABlab(70.24, -12.89, 61.62)
CIE-LCHlch(70.24, 62.95, 101.82°)
OKLaboklab(73.91% -0.0419 0.136)
OKLCHoklch(73.91% 0.142 107.1)
XYZxyz(35.1371, 41.0974, 8.9869)
Luminance0.4110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B031 #3136B5
analogous
#B56E31 #B5B031 #78B531
triadic
#B5B031 #31B5B0 #B031B5
tetradic
#B5B031 #31B56E #3136B5 #B53178
square
#B5B031 #31B56E #3136B5 #B53178
split-complementary
#B5B031 #3178B5 #6E31B5
monochromatic
#555217 #858124 #B5B031 #D0CC53 #DDDA83

Accessibility & contrast

On white

2.28
#B5B031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#B5B031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B031
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B031#FFFFFF#000000##000000
##B5B0311.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5b031;
/* rgb */ color: rgb(181, 176, 49);
/* oklch */ color: oklch(73.9% 0.142 107.1);
Tailwind
colors: {
  custom: {
    50: '#cfc772',
    500: '#b5b031',
    950: '#000000',
  },
}
SCSS
$custom: #b5b031;
$custom-light: #cfc772;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b031",
  "rgb": {
    "r": 181,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 57.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73906,
    "c": 0.1423,
    "h": 107.1
  },
  "luminance": 0.41096
}

Semantic roles & 50–950 ramp

primary
#B5B031
secondary
#7B7EC7
accent
#4DE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B031

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

Preview Lab → · Contrast checker → · Palette generator →

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