#B5B142#B5B142

#B5B142 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.3% C 0.132 H 107.2°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#B5B142
RGBrgb(181, 177, 66)
HSLhsl(58, 47%, 48%)
HSVhsv(58, 64%, 71%)
CMYKcmyk(0%, 2.2%, 63.5%, 29%)
CIE-LABlab(70.64, -12.47, 55.36)
CIE-LCHlch(70.64, 56.74, 102.70°)
OKLaboklab(74.26% -0.039 0.1256)
OKLCHoklch(74.26% 0.132 107.2)
XYZxyz(35.7628, 41.6625, 11.3110)
Luminance0.4166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B142 #4246B5
analogous
#B57742 #B5B142 #7FB542
triadic
#B5B142 #42B5B1 #B142B5
tetradic
#B5B142 #42B577 #4246B5 #B5427F
square
#B5B142 #42B577 #4246B5 #B5427F
split-complementary
#B5B142 #427FB5 #7742B5
monochromatic
#5B5921 #888532 #B5B142 #C9C66B #D9D798

Accessibility & contrast

On white

2.25
#B5B142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#B5B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B142
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B142#FFFFFF#000000##000000
##B5B1421.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA34
Deuteranopia (green-blind)
#C1AF49
Tritanopia (blue-blind)
#C2A69A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b142;
/* rgb */ color: rgb(181, 177, 66);
/* oklch */ color: oklch(74.3% 0.132 107.2);
Tailwind
colors: {
  custom: {
    50: '#cec87c',
    500: '#b5b142',
    950: '#000000',
  },
}
SCSS
$custom: #b5b142;
$custom-light: #cec87c;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b142",
  "rgb": {
    "r": 181,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 57.913,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.74258,
    "c": 0.13153,
    "h": 107.2
  },
  "luminance": 0.41661
}

Semantic roles & 50–950 ramp

primary
#B5B142
secondary
#8E8FC5
accent
#56D652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B5B142

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

Preview Lab → · Contrast checker → · Palette generator →

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