#B5B828#B5B828

#B5B828 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#B5B828
RGBrgb(181, 184, 40)
HSLhsl(61, 64%, 44%)
HSVhsv(61, 78%, 72%)
CMYKcmyk(1.6%, 0%, 78.3%, 27.8%)
CIE-LABlab(72.40, -17.34, 66.53)
CIE-LCHlch(72.40, 68.75, 104.61°)
OKLaboklab(75.61% -0.0551 0.1448)
OKLCHoklch(75.61% 0.155 110.8)
XYZxyz(36.5809, 44.2590, 8.6229)
Luminance0.4426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B828 #2B28B8
analogous
#B87328 #B5B828 #6DB828
triadic
#B5B828 #28B5B8 #B828B5
tetradic
#B5B828 #28B873 #2B28B8 #B8286D
square
#B5B828 #28B873 #2B28B8 #B8286D
split-complementary
#B5B828 #286DB8 #7328B8
monochromatic
#525312 #84861D #B5B828 #D4D746 #E0E279

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5B828#FFFFFF#000000##000000
##B5B8281.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)
#C8B335
Tritanopia (blue-blind)
#C2AC9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b5b828;
/* rgb */ color: rgb(181, 184, 40);
/* oklch */ color: oklch(75.6% 0.155 110.8);
Tailwind
colors: {
  custom: {
    50: '#cfcd6f',
    500: '#b5b828',
    950: '#000000',
  },
}
SCSS
$custom: #b5b828;
$custom-light: #cfcd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b828",
  "rgb": {
    "r": 181,
    "g": 184,
    "b": 40
  },
  "hsl": {
    "h": 61.25,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.75614,
    "c": 0.15491,
    "h": 110.8
  },
  "luminance": 0.44258
}

Semantic roles & 50–950 ramp

primary
#B5B828
secondary
#7472CA
accent
#41E744
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B828

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

Preview Lab → · Contrast checker → · Palette generator →

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