#B142B7#B142B7

#B142B7 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.6% C 0.199 H 325.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B142B7
RGBrgb(177, 66, 183)
HSLhsl(297, 47%, 49%)
HSVhsv(297, 64%, 72%)
CMYKcmyk(3.3%, 63.9%, 0%, 28.2%)
CIE-LABlab(47.83, 60.01, -40.55)
CIE-LCHlch(47.83, 72.43, 325.95°)
OKLaboklab(57.6% 0.1646 -0.1124)
OKLCHoklch(57.6% 0.199 325.7)
XYZxyz(28.6263, 16.6642, 46.4993)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142B7 #48B742
analogous
#7742B7 #B142B7 #B74283
triadic
#B142B7 #B7B142 #42B7B1
tetradic
#B142B7 #B77742 #48B742 #4283B7
square
#B142B7 #B77742 #48B742 #4283B7
split-complementary
#B142B7 #83B742 #42B777
monochromatic
#5A225D #85328A #B142B7 #C56CCA #D799DA

Accessibility & contrast

On white

4.85
#B142B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B142B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B142B7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142B7#FFFFFF#000000##FFFFFF
##B142B71.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BA
Deuteranopia (green-blind)
#5976B4
Tritanopia (blue-blind)
#B55377
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b142b7;
/* rgb */ color: rgb(177, 66, 183);
/* oklch */ color: oklch(57.6% 0.199 325.7);
Tailwind
colors: {
  custom: {
    50: '#cb7ecd',
    500: '#b142b7',
    950: '#000000',
  },
}
SCSS
$custom: #b142b7;
$custom-light: #cb7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#b142b7",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 296.923,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57597,
    "c": 0.19929,
    "h": 325.7
  },
  "luminance": 0.16662
}

Semantic roles & 50–950 ramp

primary
#B142B7
secondary
#91C68F
accent
#D75158
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B13
muted
#827C82

Preview Lab

Preview with #B142B7

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

Preview Lab → · Contrast checker → · Palette generator →

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