#B142A7#B142A7

#B142A7 is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.7% C 0.186 H 331.4°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#B142A7
RGBrgb(177, 66, 167)
HSLhsl(305, 46%, 48%)
HSVhsv(305, 63%, 69%)
CMYKcmyk(0%, 62.7%, 5.6%, 30.6%)
CIE-LABlab(47.02, 57.26, -32.43)
CIE-LCHlch(47.02, 65.81, 330.48°)
OKLaboklab(56.74% 0.1634 -0.0889)
OKLCHoklch(56.74% 0.186 331.4)
XYZxyz(27.0547, 16.0355, 38.2219)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142A7 #42B14C
analogous
#8342B1 #B142A7 #B14270
triadic
#B142A7 #A7B142 #42A7B1
tetradic
#B142A7 #B18342 #42B14C #4270B1
square
#B142A7 #B18342 #42B14C #4270B1
split-complementary
#B142A7 #70B142 #42B183
monochromatic
#582153 #84317D #B142A7 #C769BF #D896D2

Accessibility & contrast

On white

4.99
#B142A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B142A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B142A7
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142A7#FFFFFF#000000##FFFFFF
##B142A71.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AA
Deuteranopia (green-blind)
#6175A4
Tritanopia (blue-blind)
#B84D6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b142a7;
/* rgb */ color: rgb(177, 66, 167);
/* oklch */ color: oklch(56.7% 0.186 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb7ec1',
    500: '#b142a7',
    950: '#000000',
  },
}
SCSS
$custom: #b142a7;
$custom-light: #cb7ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b142a7",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 305.405,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.186,
    "h": 331.4
  },
  "luminance": 0.16034
}

Semantic roles & 50–950 ramp

primary
#B142A7
secondary
#8BC390
accent
#D55E52
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B142A7

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

Preview Lab → · Contrast checker → · Palette generator →

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