#B828AB#B828AB

#B828AB is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.7% C 0.223 H 332.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B828AB
RGBrgb(184, 40, 171)
HSLhsl(305, 64%, 44%)
HSVhsv(305, 78%, 72%)
CMYKcmyk(0%, 78.3%, 7.1%, 27.8%)
CIE-LABlab(45.15, 68.62, -37.66)
CIE-LCHlch(45.15, 78.27, 331.24°)
OKLaboklab(55.68% 0.1973 -0.1037)
OKLCHoklch(55.68% 0.223 332.3)
XYZxyz(27.8767, 14.6506, 39.8798)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B828AB #28B835
analogous
#7D28B8 #B828AB #B82863
triadic
#B828AB #ABB828 #28ABB8
tetradic
#B828AB #B87D28 #28B835 #2863B8
square
#B828AB #B87D28 #28B835 #2863B8
split-complementary
#B828AB #63B828 #28B87D
monochromatic
#53124E #861D7C #B828AB #D746CA #E279D8

Accessibility & contrast

On white

5.34
#B828AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B828AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B828AB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B828AB#FFFFFF#000000##FFFFFF
##B828AB1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5EAE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#C03A69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b828ab;
/* rgb */ color: rgb(184, 40, 171);
/* oklch */ color: oklch(55.7% 0.223 332.3);
Tailwind
colors: {
  custom: {
    50: '#d173c4',
    500: '#b828ab',
    950: '#000000',
  },
}
SCSS
$custom: #b828ab;
$custom-light: #d173c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b828ab",
  "rgb": {
    "r": 184,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 305.417,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55681,
    "c": 0.22285,
    "h": 332.3
  },
  "luminance": 0.14648
}

Semantic roles & 50–950 ramp

primary
#B828AB
secondary
#72CA7A
accent
#E75041
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #B828AB

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

Preview Lab → · Contrast checker → · Palette generator →

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