#B5B827#B5B827

#B5B827 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.6% C 0.155 H 110.8°. Best body text is #000000 at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#B5B827
RGBrgb(181, 184, 39)
HSLhsl(61, 65%, 44%)
HSVhsv(61, 79%, 72%)
CMYKcmyk(1.6%, 0%, 78.8%, 27.8%)
CIE-LABlab(72.40, -17.38, 66.82)
CIE-LCHlch(72.40, 69.04, 104.58°)
OKLaboklab(75.61% -0.0553 0.1452)
OKLCHoklch(75.61% 0.155 110.8)
XYZxyz(36.5641, 44.2522, 8.5345)
Luminance0.4425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B827 #2A27B8
analogous
#B87227 #B5B827 #6CB827
triadic
#B5B827 #27B5B8 #B827B5
tetradic
#B5B827 #27B872 #2A27B8 #B8276C
square
#B5B827 #27B872 #2A27B8 #B8276C
split-complementary
#B5B827 #276CB8 #7227B8
monochromatic
#525312 #83861C #B5B827 #D4D845 #E0E277

Accessibility & contrast

On white

2.13
#B5B827 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.85
#B5B827 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B827
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B827#FFFFFF#000000##000000
##B5B8271.002.139.859.85
#FFFFFF2.131.0021.0021.00
#0000009.8521.001.001.00
##0000009.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C8B334
Tritanopia (blue-blind)
#C2AC9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b5b827;
/* rgb */ color: rgb(181, 184, 39);
/* oklch */ color: oklch(75.6% 0.155 110.8);
Tailwind
colors: {
  custom: {
    50: '#cfcd6f',
    500: '#b5b827',
    950: '#000000',
  },
}
SCSS
$custom: #b5b827;
$custom-light: #cfcd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b827",
  "rgb": {
    "r": 181,
    "g": 184,
    "b": 39
  },
  "hsl": {
    "h": 61.241,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.75609,
    "c": 0.15539,
    "h": 110.8
  },
  "luminance": 0.44251
}

Semantic roles & 50–950 ramp

primary
#B5B827
secondary
#7371CA
accent
#40E843
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B827

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

Preview Lab → · Contrast checker → · Palette generator →

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