#B142AB#B142AB

#B142AB is a mid, vivid purple. Relative luminance 0.162; OKLCH L 56.9% C 0.189 H 329.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B142AB
RGBrgb(177, 66, 171)
HSLhsl(303, 46%, 48%)
HSVhsv(303, 63%, 69%)
CMYKcmyk(0%, 62.7%, 3.4%, 30.6%)
CIE-LABlab(47.22, 57.93, -34.48)
CIE-LCHlch(47.22, 67.42, 329.24°)
OKLaboklab(56.95% 0.1638 -0.0948)
OKLCHoklch(56.95% 0.189 329.9)
XYZxyz(27.4302, 16.1857, 40.1996)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142AB #42B148
analogous
#7F42B1 #B142AB #B14274
triadic
#B142AB #ABB142 #42ABB1
tetradic
#B142AB #B17F42 #42B148 #4274B1
square
#B142AB #B17F42 #42B148 #4274B1
split-complementary
#B142AB #74B142 #42B17F
monochromatic
#582155 #843180 #B142AB #C769C2 #D896D4

Accessibility & contrast

On white

4.96
#B142AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#B142AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B142AB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142AB#FFFFFF#000000##FFFFFF
##B142AB1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#5F75A8
Tritanopia (blue-blind)
#B74E70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b142ab;
/* rgb */ color: rgb(177, 66, 171);
/* oklch */ color: oklch(56.9% 0.189 329.9);
Tailwind
colors: {
  custom: {
    50: '#cb7ec4',
    500: '#b142ab',
    950: '#000000',
  },
}
SCSS
$custom: #b142ab;
$custom-light: #cb7ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b142ab",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 303.243,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56949,
    "c": 0.18924,
    "h": 329.9
  },
  "luminance": 0.16184
}

Semantic roles & 50–950 ramp

primary
#B142AB
secondary
#8BC38E
accent
#D55A52
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #B142AB

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

Preview Lab → · Contrast checker → · Palette generator →

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