#B127A5#B127A5

#B127A5 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.216 H 332.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B127A5
RGBrgb(177, 39, 165)
HSLhsl(305, 64%, 42%)
HSVhsv(305, 78%, 69%)
CMYKcmyk(0%, 78%, 6.8%, 30.6%)
CIE-LABlab(43.53, 66.50, -36.73)
CIE-LCHlch(43.53, 75.97, 331.09°)
OKLaboklab(54.19% 0.191 -0.1011)
OKLCHoklch(54.19% 0.216 332.1)
XYZxyz(25.6486, 13.5169, 36.8482)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B127A5 #27B133
analogous
#7827B1 #B127A5 #B12760
triadic
#B127A5 #A5B127 #27A5B1
tetradic
#B127A5 #B17827 #27B133 #2760B1
square
#B127A5 #B17827 #27B133 #2760B1
split-complementary
#B127A5 #60B127 #27B178
monochromatic
#4D1148 #7F1C76 #B127A5 #D540C8 #E072D6

Accessibility & contrast

On white

5.67
#B127A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B127A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B127A5
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B127A5#FFFFFF#000000##FFFFFF
##B127A51.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5BA8
Deuteranopia (green-blind)
#566EA2
Tritanopia (blue-blind)
#B93865
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b127a5;
/* rgb */ color: rgb(177, 39, 165);
/* oklch */ color: oklch(54.2% 0.216 332.1);
Tailwind
colors: {
  custom: {
    50: '#cc72c0',
    500: '#b127a5',
    950: '#000000',
  },
}
SCSS
$custom: #b127a5;
$custom-light: #cc72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b127a5",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 305.217,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54192,
    "c": 0.21608,
    "h": 332.1
  },
  "luminance": 0.13515
}

Semantic roles & 50–950 ramp

primary
#B127A5
secondary
#6DC775
accent
#E74F41
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B127A5

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

Preview Lab → · Contrast checker → · Palette generator →

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