#B828AA#B828AA

#B828AA is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.222 H 332.6°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B828AA
RGBrgb(184, 40, 170)
HSLhsl(306, 64%, 44%)
HSVhsv(306, 78%, 72%)
CMYKcmyk(0%, 78.3%, 7.6%, 27.8%)
CIE-LABlab(45.10, 68.47, -37.15)
CIE-LCHlch(45.10, 77.90, 331.51°)
OKLaboklab(55.63% 0.1972 -0.1022)
OKLCHoklch(55.63% 0.222 332.6)
XYZxyz(27.7818, 14.6126, 39.3797)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B828AA #28B836
analogous
#7E28B8 #B828AA #B82862
triadic
#B828AA #AAB828 #28AAB8
tetradic
#B828AA #B87E28 #28B836 #2862B8
square
#B828AA #B87E28 #28B836 #2862B8
split-complementary
#B828AA #62B828 #28B87E
monochromatic
#53124D #861D7C #B828AA #D746C9 #E279D8

Accessibility & contrast

On white

5.35
#B828AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B828AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B828AA
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B828AA#FFFFFF#000000##FFFFFF
##B828AA1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAD
Deuteranopia (green-blind)
#5A72A7
Tritanopia (blue-blind)
#C03968
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b828aa;
/* rgb */ color: rgb(184, 40, 170);
/* oklch */ color: oklch(55.6% 0.222 332.6);
Tailwind
colors: {
  custom: {
    50: '#d173c4',
    500: '#b828aa',
    950: '#000000',
  },
}
SCSS
$custom: #b828aa;
$custom-light: #d173c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b828aa",
  "rgb": {
    "r": 184,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 305.833,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55626,
    "c": 0.22214,
    "h": 332.6
  },
  "luminance": 0.1461
}

Semantic roles & 50–950 ramp

primary
#B828AA
secondary
#72CA7B
accent
#E75141
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#150912
muted
#837B81

Preview Lab

Preview with #B828AA

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

Preview Lab → · Contrast checker → · Palette generator →

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