#B128B1#B128B1

#B128B1 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.9% C 0.224 H 328.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B128B1
RGBrgb(177, 40, 177)
HSLhsl(300, 63%, 43%)
HSVhsv(300, 77%, 69%)
CMYKcmyk(0%, 77.4%, 0%, 30.6%)
CIE-LABlab(44.29, 68.10, -42.65)
CIE-LCHlch(44.29, 80.35, 327.94°)
OKLaboklab(54.95% 0.1901 -0.1183)
OKLCHoklch(54.95% 0.224 328.1)
XYZxyz(26.8257, 14.0410, 42.8837)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B128B1 #28B128
analogous
#6C28B1 #B128B1 #B1286C
triadic
#B128B1 #B1B128 #28B1B1
tetradic
#B128B1 #B16C28 #28B128 #286CB1
square
#B128B1 #B16C28 #28B128 #286CB1
split-complementary
#B128B1 #6CB128 #28B16C
monochromatic
#4D114D #7F1D7F #B128B1 #D442D4 #E074E0

Accessibility & contrast

On white

5.51
#B128B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B128B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B128B1
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B128B1#FFFFFF#000000##FFFFFF
##B128B11.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#506FAE
Tritanopia (blue-blind)
#B73F6C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b128b1;
/* rgb */ color: rgb(177, 40, 177);
/* oklch */ color: oklch(54.9% 0.224 328.1);
Tailwind
colors: {
  custom: {
    50: '#cc73c9',
    500: '#b128b1',
    950: '#000000',
  },
}
SCSS
$custom: #b128b1;
$custom-light: #cc73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b128b1",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 300,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54948,
    "c": 0.2239,
    "h": 328.1
  },
  "luminance": 0.14039
}

Semantic roles & 50–950 ramp

primary
#B128B1
secondary
#6EC76E
accent
#E64242
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B128B1

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

Preview Lab → · Contrast checker → · Palette generator →

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