#B128B2#B128B2

#B128B2 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 55.0% C 0.225 H 327.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B128B2
RGBrgb(177, 40, 178)
HSLhsl(300, 63%, 43%)
HSVhsv(300, 78%, 70%)
CMYKcmyk(0.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(44.35, 68.26, -43.15)
CIE-LCHlch(44.35, 80.75, 327.70°)
OKLaboklab(55.01% 0.1901 -0.1197)
OKLCHoklch(55.01% 0.225 327.8)
XYZxyz(26.9258, 14.0810, 43.4106)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B128B2 #29B228
analogous
#6C28B2 #B128B2 #B2286E
triadic
#B128B2 #B2B128 #28B2B1
tetradic
#B128B2 #B26C28 #29B228 #286EB2
square
#B128B2 #B26C28 #29B228 #286EB2
split-complementary
#B128B2 #6EB228 #28B26C
monochromatic
#4E124E #7F1D80 #B128B2 #D443D5 #DF75E0

Accessibility & contrast

On white

5.50
#B128B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B128B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B128B2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B128B2#FFFFFF#000000##FFFFFF
##B128B21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#4F6FAF
Tritanopia (blue-blind)
#B7406D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b128b2;
/* rgb */ color: rgb(177, 40, 178);
/* oklch */ color: oklch(55.0% 0.225 327.8);
Tailwind
colors: {
  custom: {
    50: '#cc73c9',
    500: '#b128b2',
    950: '#000000',
  },
}
SCSS
$custom: #b128b2;
$custom-light: #cc73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b128b2",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 299.565,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.55007,
    "c": 0.22464,
    "h": 327.8
  },
  "luminance": 0.14079
}

Semantic roles & 50–950 ramp

primary
#B128B2
secondary
#6FC76F
accent
#E64143
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B128B2

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

Preview Lab → · Contrast checker → · Palette generator →

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