#B128A8#B128A8

#B128A8 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.217 H 331.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B128A8
RGBrgb(177, 40, 168)
HSLhsl(304, 63%, 43%)
HSVhsv(304, 77%, 69%)
CMYKcmyk(0%, 77.4%, 5.1%, 30.6%)
CIE-LABlab(43.79, 66.68, -38.11)
CIE-LCHlch(43.79, 76.80, 330.25°)
OKLaboklab(54.43% 0.1902 -0.1051)
OKLCHoklch(54.43% 0.217 331.1)
XYZxyz(25.9581, 13.6940, 38.3142)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B128A8 #28B131
analogous
#7628B1 #B128A8 #B12863
triadic
#B128A8 #A8B128 #28A8B1
tetradic
#B128A8 #B17628 #28B131 #2863B1
square
#B128A8 #B17628 #28B131 #2863B1
split-complementary
#B128A8 #63B128 #28B176
monochromatic
#4D1149 #7F1D79 #B128A8 #D442CB #E074D8

Accessibility & contrast

On white

5.62
#B128A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B128A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B128A8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B128A8#FFFFFF#000000##FFFFFF
##B128A81.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185CAB
Deuteranopia (green-blind)
#556EA5
Tritanopia (blue-blind)
#B83B67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b128a8;
/* rgb */ color: rgb(177, 40, 168);
/* oklch */ color: oklch(54.4% 0.217 331.1);
Tailwind
colors: {
  custom: {
    50: '#cc72c2',
    500: '#b128a8',
    950: '#000000',
  },
}
SCSS
$custom: #b128a8;
$custom-light: #cc72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b128a8",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 303.942,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54429,
    "c": 0.2173,
    "h": 331.1
  },
  "luminance": 0.13692
}

Semantic roles & 50–950 ramp

primary
#B128A8
secondary
#6EC774
accent
#E64C42
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B128A8

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

Preview Lab → · Contrast checker → · Palette generator →

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