#B127B1#B127B1

#B127B1 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.9% C 0.225 H 328.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#B127B1
RGBrgb(177, 39, 177)
HSLhsl(300, 64%, 42%)
HSVhsv(300, 78%, 69%)
CMYKcmyk(0%, 78%, 0%, 30.6%)
CIE-LABlab(44.20, 68.37, -42.80)
CIE-LCHlch(44.20, 80.67, 327.95°)
OKLaboklab(54.88% 0.1909 -0.1187)
OKLCHoklch(54.88% 0.225 328.1)
XYZxyz(26.7925, 13.9745, 42.8727)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B127B1 #27B127
analogous
#6C27B1 #B127B1 #B1276C
triadic
#B127B1 #B1B127 #27B1B1
tetradic
#B127B1 #B16C27 #27B127 #276CB1
square
#B127B1 #B16C27 #27B127 #276CB1
split-complementary
#B127B1 #6CB127 #27B16C
monochromatic
#4D114D #7F1C7F #B127B1 #D540D5 #E072E0

Accessibility & contrast

On white

5.53
#B127B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B127B1
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B127B1#FFFFFF#000000##FFFFFF
##B127B11.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#4F6FAE
Tritanopia (blue-blind)
#B73F6C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b127b1;
/* rgb */ color: rgb(177, 39, 177);
/* oklch */ color: oklch(54.9% 0.225 328.1);
Tailwind
colors: {
  custom: {
    50: '#cc72c9',
    500: '#b127b1',
    950: '#000000',
  },
}
SCSS
$custom: #b127b1;
$custom-light: #cc72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b127b1",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 300,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5488,
    "c": 0.22479,
    "h": 328.1
  },
  "luminance": 0.13972
}

Semantic roles & 50–950 ramp

primary
#B127B1
secondary
#6DC76D
accent
#E74141
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B127B1

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

Preview Lab → · Contrast checker → · Palette generator →

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