#B528B1#B528B1

#B528B1 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.6% C 0.226 H 329.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B528B1
RGBrgb(181, 40, 177)
HSLhsl(302, 64%, 43%)
HSVhsv(302, 78%, 71%)
CMYKcmyk(0%, 77.9%, 2.2%, 29%)
CIE-LABlab(44.97, 68.91, -41.54)
CIE-LCHlch(44.97, 80.46, 328.92°)
OKLaboklab(55.56% 0.1943 -0.115)
OKLCHoklch(55.56% 0.226 329.4)
XYZxyz(27.7505, 14.5178, 42.9271)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B528B1 #28B52C
analogous
#7228B5 #B528B1 #B5286A
triadic
#B528B1 #B1B528 #28B1B5
tetradic
#B528B1 #B57228 #28B52C #286AB5
square
#B528B1 #B57228 #28B52C #286AB5
split-complementary
#B528B1 #6AB528 #28B572
monochromatic
#51124F #831D80 #B528B1 #D644D2 #E177DE

Accessibility & contrast

On white

5.38
#B528B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B528B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B528B1
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B528B1#FFFFFF#000000##FFFFFF
##B528B11.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095FB5
Deuteranopia (green-blind)
#5471AE
Tritanopia (blue-blind)
#BC3E6C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b528b1;
/* rgb */ color: rgb(181, 40, 177);
/* oklch */ color: oklch(55.6% 0.226 329.4);
Tailwind
colors: {
  custom: {
    50: '#cf73c9',
    500: '#b528b1',
    950: '#000000',
  },
}
SCSS
$custom: #b528b1;
$custom-light: #cf73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b528b1",
  "rgb": {
    "r": 181,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 301.702,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55557,
    "c": 0.22572,
    "h": 329.4
  },
  "luminance": 0.14516
}

Semantic roles & 50–950 ramp

primary
#B528B1
secondary
#70C873
accent
#E74641
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B528B1

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

Preview Lab → · Contrast checker → · Palette generator →

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