#B828B2#B828B2

#B828B2 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.1% C 0.228 H 330.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B828B2
RGBrgb(184, 40, 178)
HSLhsl(303, 64%, 44%)
HSVhsv(303, 78%, 72%)
CMYKcmyk(0%, 78.3%, 3.3%, 27.8%)
CIE-LABlab(45.53, 69.68, -41.20)
CIE-LCHlch(45.53, 80.95, 329.41°)
OKLaboklab(56.07% 0.1973 -0.1139)
OKLCHoklch(56.07% 0.228 330)
XYZxyz(28.5617, 14.9246, 43.4873)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B828B2 #28B82E
analogous
#7628B8 #B828B2 #B8286A
triadic
#B828B2 #B2B828 #28B2B8
tetradic
#B828B2 #B87628 #28B82E #286AB8
square
#B828B2 #B87628 #28B82E #286AB8
split-complementary
#B828B2 #6AB828 #28B876
monochromatic
#531251 #861D81 #B828B2 #D746D1 #E279DD

Accessibility & contrast

On white

5.27
#B828B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B828B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B828B2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B828B2#FFFFFF#000000##FFFFFF
##B828B21.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D60B6
Deuteranopia (green-blind)
#5672AF
Tritanopia (blue-blind)
#BF3E6D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b828b2;
/* rgb */ color: rgb(184, 40, 178);
/* oklch */ color: oklch(56.1% 0.228 330.0);
Tailwind
colors: {
  custom: {
    50: '#d174c9',
    500: '#b828b2',
    950: '#000000',
  },
}
SCSS
$custom: #b828b2;
$custom-light: #d174c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b828b2",
  "rgb": {
    "r": 184,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 302.5,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56073,
    "c": 0.22782,
    "h": 330
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#B828B2
secondary
#72CA76
accent
#E74741
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #B828B2

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

Preview Lab → · Contrast checker → · Palette generator →

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