#B128A7#B128A7

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

Color values

HEX#B128A7
RGBrgb(177, 40, 167)
HSLhsl(304, 63%, 43%)
HSVhsv(304, 77%, 69%)
CMYKcmyk(0%, 77.4%, 5.6%, 30.6%)
CIE-LABlab(43.74, 66.53, -37.60)
CIE-LCHlch(43.74, 76.42, 330.52°)
OKLaboklab(54.37% 0.1902 -0.1036)
OKLCHoklch(54.37% 0.217 331.4)
XYZxyz(25.8653, 13.6569, 37.8255)
Luminance0.1366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B128A7 #28B132
analogous
#7728B1 #B128A7 #B12862
triadic
#B128A7 #A7B128 #28A7B1
tetradic
#B128A7 #B17728 #28B132 #2862B1
square
#B128A7 #B17728 #28B132 #2862B1
split-complementary
#B128A7 #62B128 #28B177
monochromatic
#4D1149 #7F1D78 #B128A7 #D442CA #E074D8

Accessibility & contrast

On white

5.63
#B128A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B128A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B128A7
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B128A7#FFFFFF#000000##FFFFFF
##B128A71.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BAA
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#B83A66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b128a7;
/* rgb */ color: rgb(177, 40, 167);
/* oklch */ color: oklch(54.4% 0.217 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc72c1',
    500: '#b128a7',
    950: '#000000',
  },
}
SCSS
$custom: #b128a7;
$custom-light: #cc72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b128a7",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 304.38,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54373,
    "c": 0.21658,
    "h": 331.4
  },
  "luminance": 0.13655
}

Semantic roles & 50–950 ramp

primary
#B128A7
secondary
#6EC774
accent
#E64E42
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B128A7

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

Preview Lab → · Contrast checker → · Palette generator →

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