#B828B1#B828B1

#B828B1 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.227 H 330.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B828B1
RGBrgb(184, 40, 177)
HSLhsl(303, 64%, 44%)
HSVhsv(303, 78%, 72%)
CMYKcmyk(0%, 78.3%, 3.8%, 27.8%)
CIE-LABlab(45.48, 69.53, -40.70)
CIE-LCHlch(45.48, 80.56, 329.66°)
OKLaboklab(56.02% 0.1973 -0.1124)
OKLCHoklch(56.02% 0.227 330.3)
XYZxyz(28.4617, 14.8845, 42.9604)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B828B1 #28B82F
analogous
#7728B8 #B828B1 #B82869
triadic
#B828B1 #B1B828 #28B1B8
tetradic
#B828B1 #B87728 #28B82F #2869B8
square
#B828B1 #B87728 #28B82F #2869B8
split-complementary
#B828B1 #69B828 #28B877
monochromatic
#531250 #861D81 #B828B1 #D746D0 #E279DD

Accessibility & contrast

On white

5.28
#B828B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B828B1
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B828B1#FFFFFF#000000##FFFFFF
##B828B11.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105FB5
Deuteranopia (green-blind)
#5672AE
Tritanopia (blue-blind)
#BF3D6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b828b1;
/* rgb */ color: rgb(184, 40, 177);
/* oklch */ color: oklch(56.0% 0.227 330.3);
Tailwind
colors: {
  custom: {
    50: '#d174c9',
    500: '#b828b1',
    950: '#000000',
  },
}
SCSS
$custom: #b828b1;
$custom-light: #d174c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b828b1",
  "rgb": {
    "r": 184,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 302.917,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56016,
    "c": 0.2271,
    "h": 330.3
  },
  "luminance": 0.14882
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B828B1

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

Preview Lab → · Contrast checker → · Palette generator →

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