#B5C728#B5C728

#B5C728 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 79.0% C 0.170 H 116.3°. Best body text is #000000 at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#B5C728
RGBrgb(181, 199, 40)
HSLhsl(67, 67%, 47%)
HSVhsv(67, 80%, 78%)
CMYKcmyk(9%, 0%, 79.9%, 22%)
CIE-LABlab(76.57, -24.75, 70.23)
CIE-LCHlch(76.57, 74.47, 109.41°)
OKLaboklab(78.96% -0.0756 0.1527)
OKLCHoklch(78.96% 0.17 116.3)
XYZxyz(39.8636, 50.8244, 9.7172)
Luminance0.5082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C728 #3A28C7
analogous
#C78928 #B5C728 #66C728
triadic
#B5C728 #28B5C7 #C728B5
tetradic
#B5C728 #28C789 #3A28C7 #C72866
square
#B5C728 #28C789 #3A28C7 #C72866
split-complementary
#B5C728 #2866C7 #8928C7
monochromatic
#586114 #87941E #B5C728 #CCDC50 #DBE683

Accessibility & contrast

On white

1.88
#B5C728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.16
#B5C728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C728
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C728#FFFFFF#000000##000000
##B5C7281.001.8811.1611.16
#FFFFFF1.881.0021.0021.00
#00000011.1621.001.001.00
##00000011.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#D4BE38
Tritanopia (blue-blind)
#C1BBAA
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b5c728;
/* rgb */ color: rgb(181, 199, 40);
/* oklch */ color: oklch(79.0% 0.170 116.3);
Tailwind
colors: {
  custom: {
    50: '#cfd771',
    500: '#b5c728',
    950: '#000000',
  },
}
SCSS
$custom: #b5c728;
$custom-light: #cfd771;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c728",
  "rgb": {
    "r": 181,
    "g": 199,
    "b": 40
  },
  "hsl": {
    "h": 66.792,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.78959,
    "c": 0.17039,
    "h": 116.3
  },
  "luminance": 0.50824
}

Semantic roles & 50–950 ramp

primary
#B5C728
secondary
#2F276C
accent
#3EE952
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B5C728

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

Preview Lab → · Contrast checker → · Palette generator →

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