#B5B72D#B5B72D

#B5B72D is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.4% C 0.151 H 110.4°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#B5B72D
RGBrgb(181, 183, 45)
HSLhsl(61, 61%, 45%)
HSVhsv(61, 75%, 72%)
CMYKcmyk(1.1%, 0%, 75.4%, 28.2%)
CIE-LABlab(72.15, -16.64, 64.76)
CIE-LCHlch(72.15, 66.86, 104.41°)
OKLaboklab(75.42% -0.0527 0.1419)
OKLCHoklch(75.42% 0.151 110.4)
XYZxyz(36.4645, 43.8812, 9.0312)
Luminance0.4388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B72D #2F2DB7
analogous
#B7742D #B5B72D #70B72D
triadic
#B5B72D #2DB5B7 #B72DB5
tetradic
#B5B72D #2DB774 #2F2DB7 #B72D70
square
#B5B72D #2DB774 #2F2DB7 #B72D70
split-complementary
#B5B72D #2D70B7 #742DB7
monochromatic
#545515 #848621 #B5B72D #D1D34E #DEDF7F

Accessibility & contrast

On white

2.15
#B5B72D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#B5B72D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B72D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B72D#FFFFFF#000000##000000
##B5B72D1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF0A
Deuteranopia (green-blind)
#C7B339
Tritanopia (blue-blind)
#C2AB9D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b5b72d;
/* rgb */ color: rgb(181, 183, 45);
/* oklch */ color: oklch(75.4% 0.151 110.4);
Tailwind
colors: {
  custom: {
    50: '#cfcc71',
    500: '#b5b72d',
    950: '#000000',
  },
}
SCSS
$custom: #b5b72d;
$custom-light: #cfcc71;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b72d",
  "rgb": {
    "r": 181,
    "g": 183,
    "b": 45
  },
  "hsl": {
    "h": 60.87,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7542,
    "c": 0.15141,
    "h": 110.4
  },
  "luminance": 0.4388
}

Semantic roles & 50–950 ramp

primary
#B5B72D
secondary
#7978C8
accent
#44E446
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B72D

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

Preview Lab → · Contrast checker → · Palette generator →

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