#B828AD#B828AD

#B828AD is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.224 H 331.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B828AD
RGBrgb(184, 40, 173)
HSLhsl(305, 64%, 44%)
HSVhsv(305, 78%, 72%)
CMYKcmyk(0%, 78.3%, 6%, 27.8%)
CIE-LABlab(45.26, 68.92, -38.68)
CIE-LCHlch(45.26, 79.03, 330.70°)
OKLaboklab(55.79% 0.1973 -0.1066)
OKLCHoklch(55.79% 0.224 331.6)
XYZxyz(28.0688, 14.7274, 40.8914)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B828AD #28B833
analogous
#7B28B8 #B828AD #B82865
triadic
#B828AD #ADB828 #28ADB8
tetradic
#B828AD #B87B28 #28B833 #2865B8
square
#B828AD #B87B28 #28B833 #2865B8
split-complementary
#B828AD #65B828 #28B87B
monochromatic
#53124E #861D7E #B828AD #D746CC #E279DA

Accessibility & contrast

On white

5.32
#B828AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B828AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B828AD
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B828AD#FFFFFF#000000##FFFFFF
##B828AD1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195EB0
Deuteranopia (green-blind)
#5972AA
Tritanopia (blue-blind)
#C03B6A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b828ad;
/* rgb */ color: rgb(184, 40, 173);
/* oklch */ color: oklch(55.8% 0.224 331.6);
Tailwind
colors: {
  custom: {
    50: '#d173c6',
    500: '#b828ad',
    950: '#000000',
  },
}
SCSS
$custom: #b828ad;
$custom-light: #d173c6;
$custom-dark: #000000;
JSON
{
  "hex": "#b828ad",
  "rgb": {
    "r": 184,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 304.583,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55791,
    "c": 0.22426,
    "h": 331.6
  },
  "luminance": 0.14725
}

Semantic roles & 50–950 ramp

primary
#B828AD
secondary
#72CA79
accent
#E74D41
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #B828AD

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

Preview Lab → · Contrast checker → · Palette generator →

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