#B142A8#B142A8

#B142A8 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.187 H 331.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#B142A8
RGBrgb(177, 66, 168)
HSLhsl(305, 46%, 48%)
HSVhsv(305, 63%, 69%)
CMYKcmyk(0%, 62.7%, 5.1%, 30.6%)
CIE-LABlab(47.07, 57.43, -32.94)
CIE-LCHlch(47.07, 66.21, 330.16°)
OKLaboklab(56.79% 0.1635 -0.0904)
OKLCHoklch(56.79% 0.187 331.1)
XYZxyz(27.1475, 16.0727, 38.7107)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142A8 #42B14B
analogous
#8342B1 #B142A8 #B14270
triadic
#B142A8 #A8B142 #42A8B1
tetradic
#B142A8 #B18342 #42B14B #4270B1
square
#B142A8 #B18342 #42B14B #4270B1
split-complementary
#B142A8 #70B142 #42B183
monochromatic
#582153 #84317E #B142A8 #C769BF #D896D2

Accessibility & contrast

On white

4.98
#B142A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B142A8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142A8#FFFFFF#000000##FFFFFF
##B142A81.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AB
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#B84D6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b142a8;
/* rgb */ color: rgb(177, 66, 168);
/* oklch */ color: oklch(56.8% 0.187 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb7ec2',
    500: '#b142a8',
    950: '#000000',
  },
}
SCSS
$custom: #b142a8;
$custom-light: #cb7ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#b142a8",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 304.865,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56794,
    "c": 0.18681,
    "h": 331.1
  },
  "luminance": 0.16071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B142A8

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

Preview Lab → · Contrast checker → · Palette generator →

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