#B142A5#B142A5

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

Color values

HEX#B142A5
RGBrgb(177, 66, 165)
HSLhsl(306, 46%, 48%)
HSVhsv(306, 63%, 69%)
CMYKcmyk(0%, 62.7%, 6.8%, 30.6%)
CIE-LABlab(46.92, 56.93, -31.39)
CIE-LCHlch(46.92, 65.02, 331.13°)
OKLaboklab(56.64% 0.1632 -0.086)
OKLCHoklch(56.64% 0.184 332.2)
XYZxyz(26.8712, 15.9622, 37.2557)
Luminance0.1596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142A5 #42B14E
analogous
#8542B1 #B142A5 #B1426E
triadic
#B142A5 #A5B142 #42A5B1
tetradic
#B142A5 #B18542 #42B14E #426EB1
square
#B142A5 #B18542 #42B14E #426EB1
split-complementary
#B142A5 #6EB142 #42B185
monochromatic
#582152 #84317B #B142A5 #C769BD #D896D1

Accessibility & contrast

On white

5.01
#B142A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B142A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B142A5
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142A5#FFFFFF#000000##FFFFFF
##B142A51.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D65A8
Deuteranopia (green-blind)
#6275A2
Tritanopia (blue-blind)
#B84C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b142a5;
/* rgb */ color: rgb(177, 66, 165);
/* oklch */ color: oklch(56.6% 0.184 332.2);
Tailwind
colors: {
  custom: {
    50: '#cb7ec0',
    500: '#b142a5',
    950: '#000000',
  },
}
SCSS
$custom: #b142a5;
$custom-light: #cb7ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#b142a5",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 306.486,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56641,
    "c": 0.18441,
    "h": 332.2
  },
  "luminance": 0.1596
}

Semantic roles & 50–950 ramp

primary
#B142A5
secondary
#8BC391
accent
#D56152
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B142A5

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

Preview Lab → · Contrast checker → · Palette generator →

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