#B127B2#B127B2

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

Color values

HEX#B127B2
RGBrgb(177, 39, 178)
HSLhsl(300, 64%, 43%)
HSVhsv(300, 78%, 70%)
CMYKcmyk(0.6%, 78.1%, 0%, 30.2%)
CIE-LABlab(44.25, 68.53, -43.30)
CIE-LCHlch(44.25, 81.07, 327.71°)
OKLaboklab(54.94% 0.1908 -0.1202)
OKLCHoklch(54.94% 0.226 327.8)
XYZxyz(26.8925, 14.0145, 43.3995)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B127B2 #28B227
analogous
#6B27B2 #B127B2 #B2276E
triadic
#B127B2 #B2B127 #27B2B1
tetradic
#B127B2 #B26B27 #28B227 #276EB2
square
#B127B2 #B26B27 #28B227 #276EB2
split-complementary
#B127B2 #6EB227 #27B26B
monochromatic
#4D114E #7F1C80 #B127B2 #D441D5 #E073E0

Accessibility & contrast

On white

5.52
#B127B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B127B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B127B2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B127B2#FFFFFF#000000##FFFFFF
##B127B21.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b127b2;
/* rgb */ color: rgb(177, 39, 178);
/* oklch */ color: oklch(54.9% 0.226 327.8);
Tailwind
colors: {
  custom: {
    50: '#cc72c9',
    500: '#b127b2',
    950: '#000000',
  },
}
SCSS
$custom: #b127b2;
$custom-light: #cc72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b127b2",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 299.568,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54939,
    "c": 0.22553,
    "h": 327.8
  },
  "luminance": 0.14013
}

Semantic roles & 50–950 ramp

primary
#B127B2
secondary
#6EC86D
accent
#E74142
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B127B2

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

Preview Lab → · Contrast checker → · Palette generator →

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