#B5B231#B5B231

#B5B231 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.3% C 0.144 H 108.1°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#B5B231
RGBrgb(181, 178, 49)
HSLhsl(59, 57%, 45%)
HSVhsv(59, 73%, 71%)
CMYKcmyk(0%, 1.7%, 72.9%, 29%)
CIE-LABlab(70.79, -13.92, 62.14)
CIE-LCHlch(70.79, 63.68, 102.63°)
OKLaboklab(74.34% -0.0448 0.1371)
OKLCHoklch(74.34% 0.144 108.1)
XYZxyz(35.5322, 41.8875, 9.1185)
Luminance0.4189 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B231 #3134B5
analogous
#B57031 #B5B231 #76B531
triadic
#B5B231 #31B5B2 #B231B5
tetradic
#B5B231 #31B570 #3134B5 #B53176
square
#B5B231 #31B570 #3134B5 #B53176
split-complementary
#B5B231 #3176B5 #7031B5
monochromatic
#555317 #858324 #B5B231 #D0CE53 #DDDB83

Accessibility & contrast

On white

2.24
#B5B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#B5B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B231
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B231#FFFFFF#000000##000000
##B5B2311.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB18
Deuteranopia (green-blind)
#C3AF3B
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b231;
/* rgb */ color: rgb(181, 178, 49);
/* oklch */ color: oklch(74.3% 0.144 108.1);
Tailwind
colors: {
  custom: {
    50: '#cfc873',
    500: '#b5b231',
    950: '#000000',
  },
}
SCSS
$custom: #b5b231;
$custom-light: #cfc873;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b231",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 58.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74344,
    "c": 0.14423,
    "h": 108.1
  },
  "luminance": 0.41886
}

Semantic roles & 50–950 ramp

primary
#B5B231
secondary
#7B7DC7
accent
#4BE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B231

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

Preview Lab → · Contrast checker → · Palette generator →

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