#B128AF#B128AF

#B128AF is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.222 H 328.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B128AF
RGBrgb(177, 40, 175)
HSLhsl(301, 63%, 43%)
HSVhsv(301, 77%, 69%)
CMYKcmyk(0%, 77.4%, 1.1%, 30.6%)
CIE-LABlab(44.18, 67.78, -41.65)
CIE-LCHlch(44.18, 79.55, 328.43°)
OKLaboklab(54.83% 0.1901 -0.1154)
OKLCHoklch(54.83% 0.222 328.7)
XYZxyz(26.6279, 13.9619, 41.8416)
Luminance0.1396 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B128AF #28B12A
analogous
#6F28B1 #B128AF #B1286A
triadic
#B128AF #AFB128 #28AFB1
tetradic
#B128AF #B16F28 #28B12A #286AB1
square
#B128AF #B16F28 #28B12A #286AB1
split-complementary
#B128AF #6AB128 #28B16F
monochromatic
#4D114C #7F1D7E #B128AF #D442D2 #E074DE

Accessibility & contrast

On white

5.54
#B128AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B128AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B128AF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B128AF#FFFFFF#000000##FFFFFF
##B128AF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055DB3
Deuteranopia (green-blind)
#516FAC
Tritanopia (blue-blind)
#B73E6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b128af;
/* rgb */ color: rgb(177, 40, 175);
/* oklch */ color: oklch(54.8% 0.222 328.7);
Tailwind
colors: {
  custom: {
    50: '#cc72c7',
    500: '#b128af',
    950: '#000000',
  },
}
SCSS
$custom: #b128af;
$custom-light: #cc72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b128af",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 300.876,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54831,
    "c": 0.22241,
    "h": 328.7
  },
  "luminance": 0.1396
}

Semantic roles & 50–950 ramp

primary
#B128AF
secondary
#6EC76F
accent
#E64442
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B128AF

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

Preview Lab → · Contrast checker → · Palette generator →

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