#B828AC#B828AC

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

Color values

HEX#B828AC
RGBrgb(184, 40, 172)
HSLhsl(305, 64%, 44%)
HSVhsv(305, 78%, 72%)
CMYKcmyk(0%, 78.3%, 6.5%, 27.8%)
CIE-LABlab(45.20, 68.77, -38.17)
CIE-LCHlch(45.20, 78.65, 330.97°)
OKLaboklab(55.74% 0.1973 -0.1051)
OKLCHoklch(55.74% 0.224 331.9)
XYZxyz(27.9724, 14.6888, 40.3837)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B828AC #28B834
analogous
#7C28B8 #B828AC #B82864
triadic
#B828AC #ACB828 #28ACB8
tetradic
#B828AC #B87C28 #28B834 #2864B8
square
#B828AC #B87C28 #28B834 #2864B8
split-complementary
#B828AC #64B828 #28B87C
monochromatic
#53124E #861D7D #B828AC #D746CB #E279D9

Accessibility & contrast

On white

5.33
#B828AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B828AC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B828AC#FFFFFF#000000##FFFFFF
##B828AC1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAF
Deuteranopia (green-blind)
#5972A9
Tritanopia (blue-blind)
#C03B69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b828ac;
/* rgb */ color: rgb(184, 40, 172);
/* oklch */ color: oklch(55.7% 0.224 331.9);
Tailwind
colors: {
  custom: {
    50: '#d173c5',
    500: '#b828ac',
    950: '#000000',
  },
}
SCSS
$custom: #b828ac;
$custom-light: #d173c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b828ac",
  "rgb": {
    "r": 184,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 305,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55736,
    "c": 0.22354,
    "h": 331.9
  },
  "luminance": 0.14686
}

Semantic roles & 50–950 ramp

primary
#B828AC
secondary
#72CA79
accent
#E74E41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #B828AC

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

Preview Lab → · Contrast checker → · Palette generator →

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