#B128AB#B128AB

#B128AB is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.219 H 330.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B128AB
RGBrgb(177, 40, 171)
HSLhsl(303, 63%, 43%)
HSVhsv(303, 77%, 69%)
CMYKcmyk(0%, 77.4%, 3.4%, 30.6%)
CIE-LABlab(43.95, 67.15, -39.63)
CIE-LCHlch(43.95, 77.97, 329.45°)
OKLaboklab(54.6% 0.1902 -0.1095)
OKLCHoklch(54.6% 0.219 330.1)
XYZxyz(26.2408, 13.8071, 39.8031)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B128AB #28B12E
analogous
#7328B1 #B128AB #B12866
triadic
#B128AB #ABB128 #28ABB1
tetradic
#B128AB #B17328 #28B12E #2866B1
square
#B128AB #B17328 #28B12E #2866B1
split-complementary
#B128AB #66B128 #28B173
monochromatic
#4D114B #7F1D7B #B128AB #D442CE #E074DB

Accessibility & contrast

On white

5.58
#B128AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B128AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B128AB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B128AB#FFFFFF#000000##FFFFFF
##B128AB1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAE
Deuteranopia (green-blind)
#536EA8
Tritanopia (blue-blind)
#B83C69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b128ab;
/* rgb */ color: rgb(177, 40, 171);
/* oklch */ color: oklch(54.6% 0.219 330.1);
Tailwind
colors: {
  custom: {
    50: '#cc72c4',
    500: '#b128ab',
    950: '#000000',
  },
}
SCSS
$custom: #b128ab;
$custom-light: #cc72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b128ab",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 302.628,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.546,
    "c": 0.21947,
    "h": 330.1
  },
  "luminance": 0.13805
}

Semantic roles & 50–950 ramp

primary
#B128AB
secondary
#6EC772
accent
#E64942
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B128AB

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

Preview Lab → · Contrast checker → · Palette generator →

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