#B142A2#B142A2

#B142A2 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.5% C 0.182 H 333.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B142A2
RGBrgb(177, 66, 162)
HSLhsl(308, 46%, 48%)
HSVhsv(308, 63%, 69%)
CMYKcmyk(0%, 62.7%, 8.5%, 30.6%)
CIE-LABlab(46.78, 56.44, -29.84)
CIE-LCHlch(46.78, 63.85, 332.14°)
OKLaboklab(56.49% 0.1628 -0.0815)
OKLCHoklch(56.49% 0.182 333.4)
XYZxyz(26.6014, 15.8542, 35.8345)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B142A2 #42B151
analogous
#8842B1 #B142A2 #B1426B
triadic
#B142A2 #A2B142 #42A2B1
tetradic
#B142A2 #B18842 #42B151 #426BB1
square
#B142A2 #B18842 #42B151 #426BB1
split-complementary
#B142A2 #6BB142 #42B188
monochromatic
#582150 #843179 #B142A2 #C769BA #D896CF

Accessibility & contrast

On white

5.04
#B142A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B142A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B142A2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B142A2#FFFFFF#000000##FFFFFF
##B142A21.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A5
Deuteranopia (green-blind)
#63759F
Tritanopia (blue-blind)
#B94B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b142a2;
/* rgb */ color: rgb(177, 66, 162);
/* oklch */ color: oklch(56.5% 0.182 333.4);
Tailwind
colors: {
  custom: {
    50: '#cb7ebe',
    500: '#b142a2',
    950: '#000000',
  },
}
SCSS
$custom: #b142a2;
$custom-light: #cb7ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b142a2",
  "rgb": {
    "r": 177,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 308.108,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.18204,
    "h": 333.4
  },
  "luminance": 0.15852
}

Semantic roles & 50–950 ramp

primary
#B142A2
secondary
#8BC393
accent
#D56452
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #B142A2

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

Preview Lab → · Contrast checker → · Palette generator →

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