#B142C4#B142C4

#B142C4 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.211 H 321.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#B142C4
RGBrgb(177, 66, 196)
HSLhsl(291, 52%, 51%)
HSVhsv(291, 66%, 77%)
CMYKcmyk(9.7%, 66.3%, 0%, 23.1%)
CIE-LABlab(48.55, 62.36, -46.98)
CIE-LCHlch(48.55, 78.08, 323.01°)
OKLaboklab(58.34% 0.1648 -0.1311)
OKLCHoklch(58.34% 0.211 321.5)
XYZxyz(30.0424, 17.2306, 53.9573)
Luminance0.1723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142C4 #55C442
analogous
#7042C4 #B142C4 #C44296
triadic
#B142C4 #C4B142 #42C4B1
tetradic
#B142C4 #C47042 #55C442 #4296C4
square
#B142C4 #C47042 #55C442 #4296C4
split-complementary
#B142C4 #96C442 #42C470
monochromatic
#60216A #8A3099 #B142C4 #C471D3 #D79FE1

Accessibility & contrast

On white

4.72
#B142C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#B142C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B142C4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142C4#FFFFFF#000000##FFFFFF
##B142C41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6BC8
Deuteranopia (green-blind)
#5177C1
Tritanopia (blue-blind)
#B3587E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b142c4;
/* rgb */ color: rgb(177, 66, 196);
/* oklch */ color: oklch(58.3% 0.211 321.5);
Tailwind
colors: {
  custom: {
    50: '#cc7fd6',
    500: '#b142c4',
    950: '#000000',
  },
}
SCSS
$custom: #b142c4;
$custom-light: #cc7fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#b142c4",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 291.231,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58344,
    "c": 0.21054,
    "h": 321.5
  },
  "luminance": 0.17229
}

Semantic roles & 50–950 ramp

primary
#B142C4
secondary
#9DCE94
accent
#DC4C61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #B142C4

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

Preview Lab → · Contrast checker → · Palette generator →

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