#B127A2#B127A2

#B127A2 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.214 H 333.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#B127A2
RGBrgb(177, 39, 162)
HSLhsl(307, 64%, 42%)
HSVhsv(307, 78%, 69%)
CMYKcmyk(0%, 78%, 8.5%, 30.6%)
CIE-LABlab(43.37, 66.05, -35.19)
CIE-LCHlch(43.37, 74.84, 331.95°)
OKLaboklab(54.03% 0.1909 -0.0967)
OKLCHoklch(54.03% 0.214 333.1)
XYZxyz(25.3787, 13.4090, 35.4270)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B127A2 #27B136
analogous
#7B27B1 #B127A2 #B1275D
triadic
#B127A2 #A2B127 #27A2B1
tetradic
#B127A2 #B17B27 #27B136 #275DB1
square
#B127A2 #B17B27 #27B136 #275DB1
split-complementary
#B127A2 #5DB127 #27B17B
monochromatic
#4D1146 #7F1C74 #B127A2 #D540C5 #E072D4

Accessibility & contrast

On white

5.70
#B127A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B127A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B127A2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B127A2#FFFFFF#000000##FFFFFF
##B127A21.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#586D9F
Tritanopia (blue-blind)
#B93763
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b127a2;
/* rgb */ color: rgb(177, 39, 162);
/* oklch */ color: oklch(54.0% 0.214 333.1);
Tailwind
colors: {
  custom: {
    50: '#cc72be',
    500: '#b127a2',
    950: '#000000',
  },
}
SCSS
$custom: #b127a2;
$custom-light: #cc72be;
$custom-dark: #000000;
JSON
{
  "hex": "#b127a2",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 306.522,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54027,
    "c": 0.21395,
    "h": 333.1
  },
  "luminance": 0.13407
}

Semantic roles & 50–950 ramp

primary
#B127A2
secondary
#6DC777
accent
#E75341
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B127A2

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

Preview Lab → · Contrast checker → · Palette generator →

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