#B128A2#B128A2

#B128A2 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.213 H 333.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B128A2
RGBrgb(177, 40, 162)
HSLhsl(307, 63%, 43%)
HSVhsv(307, 77%, 69%)
CMYKcmyk(0%, 77.4%, 8.5%, 30.6%)
CIE-LABlab(43.47, 65.77, -35.04)
CIE-LCHlch(43.47, 74.52, 331.95°)
OKLaboklab(54.1% 0.19 -0.0962)
OKLCHoklch(54.1% 0.213 333.1)
XYZxyz(25.4120, 13.4755, 35.4381)
Luminance0.1347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B128A2 #28B137
analogous
#7B28B1 #B128A2 #B1285E
triadic
#B128A2 #A2B128 #28A2B1
tetradic
#B128A2 #B17B28 #28B137 #285EB1
square
#B128A2 #B17B28 #28B137 #285EB1
split-complementary
#B128A2 #5EB128 #28B17B
monochromatic
#4D1147 #7F1D74 #B128A2 #D442C4 #E074D4

Accessibility & contrast

On white

5.68
#B128A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B128A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B128A2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B128A2#FFFFFF#000000##FFFFFF
##B128A21.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA5
Deuteranopia (green-blind)
#586E9F
Tritanopia (blue-blind)
#B93764
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b128a2;
/* rgb */ color: rgb(177, 40, 162);
/* oklch */ color: oklch(54.1% 0.213 333.1);
Tailwind
colors: {
  custom: {
    50: '#cc72be',
    500: '#b128a2',
    950: '#000000',
  },
}
SCSS
$custom: #b128a2;
$custom-light: #cc72be;
$custom-dark: #000000;
JSON
{
  "hex": "#b128a2",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 306.569,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.21302,
    "h": 333.1
  },
  "luminance": 0.13473
}

Semantic roles & 50–950 ramp

primary
#B128A2
secondary
#6EC778
accent
#E65442
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B128A2

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

Preview Lab → · Contrast checker → · Palette generator →

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