#B4C728#B4C728

#B4C728 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 78.9% C 0.171 H 116.7°. Best body text is #000000 at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#B4C728
RGBrgb(180, 199, 40)
HSLhsl(67, 67%, 47%)
HSVhsv(67, 80%, 78%)
CMYKcmyk(9.5%, 0%, 79.9%, 22%)
CIE-LABlab(76.50, -25.17, 70.14)
CIE-LCHlch(76.50, 74.52, 109.74°)
OKLaboklab(78.88% -0.0767 0.1525)
OKLCHoklch(78.88% 0.171 116.7)
XYZxyz(39.6299, 50.7039, 9.7062)
Luminance0.5070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C728 #3B28C7
analogous
#C78B28 #B4C728 #65C728
triadic
#B4C728 #28B4C7 #C728B4
tetradic
#B4C728 #28C78B #3B28C7 #C72865
square
#B4C728 #28C78B #3B28C7 #C72865
split-complementary
#B4C728 #2865C7 #8B28C7
monochromatic
#586114 #86941E #B4C728 #CBDC50 #DAE683

Accessibility & contrast

On white

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

On black

11.14
#B4C728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C728
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C728#FFFFFF#000000##000000
##B4C7281.001.8811.1411.14
#FFFFFF1.881.0021.0021.00
#00000011.1421.001.001.00
##00000011.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4c728;
/* rgb */ color: rgb(180, 199, 40);
/* oklch */ color: oklch(78.9% 0.171 116.7);
Tailwind
colors: {
  custom: {
    50: '#ced771',
    500: '#b4c728',
    950: '#000000',
  },
}
SCSS
$custom: #b4c728;
$custom-light: #ced771;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c728",
  "rgb": {
    "r": 180,
    "g": 199,
    "b": 40
  },
  "hsl": {
    "h": 67.17,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.78881,
    "c": 0.17073,
    "h": 116.7
  },
  "luminance": 0.50703
}

Semantic roles & 50–950 ramp

primary
#B4C728
secondary
#30276C
accent
#3EE953
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B4C728

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

Preview Lab → · Contrast checker → · Palette generator →

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