#B2C728#B2C728

#B2C728 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 78.7% C 0.171 H 117.4°. Best body text is #000000 at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#B2C728
RGBrgb(178, 199, 40)
HSLhsl(68, 67%, 47%)
HSVhsv(68, 80%, 78%)
CMYKcmyk(10.6%, 0%, 79.9%, 22%)
CIE-LABlab(76.35, -26.00, 69.95)
CIE-LCHlch(76.35, 74.63, 110.39°)
OKLaboklab(78.73% -0.0789 0.1522)
OKLCHoklch(78.73% 0.171 117.4)
XYZxyz(39.1675, 50.4655, 9.6845)
Luminance0.5047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C728 #3D28C7
analogous
#C78D28 #B2C728 #62C728
triadic
#B2C728 #28B2C7 #C728B2
tetradic
#B2C728 #28C78D #3D28C7 #C72862
square
#B2C728 #28C78D #3D28C7 #C72862
split-complementary
#B2C728 #2862C7 #8D28C7
monochromatic
#576114 #84941E #B2C728 #C9DC50 #D9E683

Accessibility & contrast

On white

1.89
#B2C728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.09
#B2C728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C728
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C728#FFFFFF#000000##000000
##B2C7281.001.8911.0911.09
#FFFFFF1.891.0021.0021.00
#00000011.0921.001.001.00
##00000011.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#D3BD38
Tritanopia (blue-blind)
#BDBBAA
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #b2c728;
/* rgb */ color: rgb(178, 199, 40);
/* oklch */ color: oklch(78.7% 0.171 117.4);
Tailwind
colors: {
  custom: {
    50: '#cdd771',
    500: '#b2c728',
    950: '#000000',
  },
}
SCSS
$custom: #b2c728;
$custom-light: #cdd771;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c728",
  "rgb": {
    "r": 178,
    "g": 199,
    "b": 40
  },
  "hsl": {
    "h": 67.925,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.78728,
    "c": 0.17144,
    "h": 117.4
  },
  "luminance": 0.50465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B2C728

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

Preview Lab → · Contrast checker → · Palette generator →

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