#B142A4#B142A4

#B142A4 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.6% C 0.184 H 332.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B142A4
RGBrgb(177, 66, 164)
HSLhsl(307, 46%, 48%)
HSVhsv(307, 63%, 69%)
CMYKcmyk(0%, 62.7%, 7.3%, 30.6%)
CIE-LABlab(46.88, 56.77, -30.88)
CIE-LCHlch(46.88, 64.62, 331.46°)
OKLaboklab(56.59% 0.163 -0.0845)
OKLCHoklch(56.59% 0.184 332.6)
XYZxyz(26.7805, 15.9259, 36.7783)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142A4 #42B14F
analogous
#8642B1 #B142A4 #B1426C
triadic
#B142A4 #A4B142 #42A4B1
tetradic
#B142A4 #B18642 #42B14F #426CB1
square
#B142A4 #B18642 #42B14F #426CB1
split-complementary
#B142A4 #6CB142 #42B186
monochromatic
#582151 #84317B #B142A4 #C769BC #D896D0

Accessibility & contrast

On white

5.02
#B142A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#B142A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B142A4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142A4#FFFFFF#000000##FFFFFF
##B142A41.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A7
Deuteranopia (green-blind)
#6375A1
Tritanopia (blue-blind)
#B84B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b142a4;
/* rgb */ color: rgb(177, 66, 164);
/* oklch */ color: oklch(56.6% 0.184 332.6);
Tailwind
colors: {
  custom: {
    50: '#cb7ebf',
    500: '#b142a4',
    950: '#000000',
  },
}
SCSS
$custom: #b142a4;
$custom-light: #cb7ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#b142a4",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 307.027,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56591,
    "c": 0.18361,
    "h": 332.6
  },
  "luminance": 0.15924
}

Semantic roles & 50–950 ramp

primary
#B142A4
secondary
#8BC392
accent
#D56252
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B142A4

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

Preview Lab → · Contrast checker → · Palette generator →

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