#B142D7#B142D7

#B142D7 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.5% C 0.227 H 316.1°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B142D7
RGBrgb(177, 66, 215)
HSLhsl(285, 65%, 55%)
HSVhsv(285, 69%, 84%)
CMYKcmyk(17.7%, 69.3%, 0%, 15.7%)
CIE-LABlab(49.68, 65.98, -56.09)
CIE-LCHlch(49.68, 86.60, 319.63°)
OKLaboklab(59.52% 0.1639 -0.1577)
OKLCHoklch(59.52% 0.227 316.1)
XYZxyz(32.3435, 18.1511, 66.0766)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142D7 #68D742
analogous
#6642D7 #B142D7 #D742B3
triadic
#B142D7 #D7B142 #42D7B1
tetradic
#B142D7 #D76642 #68D742 #42B3D7
square
#B142D7 #D76642 #68D742 #42B3D7
split-complementary
#B142D7 #B3D742 #42D766
monochromatic
#691C83 #9126B5 #B142D7 #C675E2 #DBA7EC

Accessibility & contrast

On white

4.54
#B142D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#B142D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B142D7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142D7#FFFFFF#000000##000000
##B142D71.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#4179D4
Tritanopia (blue-blind)
#AF6088
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b142d7;
/* rgb */ color: rgb(177, 66, 215);
/* oklch */ color: oklch(59.5% 0.227 316.1);
Tailwind
colors: {
  custom: {
    50: '#cc7fe4',
    500: '#b142d7',
    950: '#000000',
  },
}
SCSS
$custom: #b142d7;
$custom-light: #cc7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#b142d7",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 284.698,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59517,
    "c": 0.22747,
    "h": 316.1
  },
  "luminance": 0.1815
}

Semantic roles & 50–950 ramp

primary
#B142D7
secondary
#ABDA9B
accent
#E8406B
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B142D7

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

Preview Lab → · Contrast checker → · Palette generator →

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