#B127A8#B127A8

#B127A8 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.218 H 331.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B127A8
RGBrgb(177, 39, 168)
HSLhsl(304, 64%, 42%)
HSVhsv(304, 78%, 69%)
CMYKcmyk(0%, 78%, 5.1%, 30.6%)
CIE-LABlab(43.69, 66.96, -38.26)
CIE-LCHlch(43.69, 77.12, 330.25°)
OKLaboklab(54.36% 0.191 -0.1056)
OKLCHoklch(54.36% 0.218 331.1)
XYZxyz(25.9248, 13.6274, 38.3031)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B127A8 #27B130
analogous
#7527B1 #B127A8 #B12763
triadic
#B127A8 #A8B127 #27A8B1
tetradic
#B127A8 #B17527 #27B130 #2763B1
square
#B127A8 #B17527 #27B130 #2763B1
split-complementary
#B127A8 #63B127 #27B175
monochromatic
#4D1149 #7F1C78 #B127A8 #D540CB #E072D9

Accessibility & contrast

On white

5.64
#B127A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B127A8
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B127A8#FFFFFF#000000##FFFFFF
##B127A81.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165BAB
Deuteranopia (green-blind)
#546EA5
Tritanopia (blue-blind)
#B83A67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b127a8;
/* rgb */ color: rgb(177, 39, 168);
/* oklch */ color: oklch(54.4% 0.218 331.1);
Tailwind
colors: {
  custom: {
    50: '#cc72c2',
    500: '#b127a8',
    950: '#000000',
  },
}
SCSS
$custom: #b127a8;
$custom-light: #cc72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b127a8",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 303.913,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5436,
    "c": 0.21822,
    "h": 331.1
  },
  "luminance": 0.13625
}

Semantic roles & 50–950 ramp

primary
#B127A8
secondary
#6DC773
accent
#E74C41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B127A8

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

Preview Lab → · Contrast checker → · Palette generator →

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