#B162A7#B162A7

#B162A7 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.0% C 0.135 H 331.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B162A7
RGBrgb(177, 98, 167)
HSLhsl(308, 34%, 54%)
HSVhsv(308, 45%, 69%)
CMYKcmyk(0%, 44.6%, 5.6%, 30.6%)
CIE-LABlab(52.81, 41.83, -23.43)
CIE-LCHlch(52.81, 47.94, 330.75°)
OKLaboklab(61.02% 0.119 -0.0636)
OKLCHoklch(61.02% 0.135 331.9)
XYZxyz(29.4740, 20.8742, 39.0284)
Luminance0.2087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162A7 #62B16C
analogous
#9462B1 #B162A7 #B16280
triadic
#B162A7 #A7B162 #62A7B1
tetradic
#B162A7 #B19462 #62B16C #6280B1
square
#B162A7 #B19462 #62B16C #6280B1
split-complementary
#B162A7 #80B162 #62B194
monochromatic
#66335F #8F4786 #B162A7 #C58BBE #DAB4D5

Accessibility & contrast

On white

4.06
#B162A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#B162A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162A7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162A7#FFFFFF#000000##000000
##B162A71.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6077A9
Deuteranopia (green-blind)
#7582A5
Tritanopia (blue-blind)
#B7677D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #b162a7;
/* rgb */ color: rgb(177, 98, 167);
/* oklch */ color: oklch(61.0% 0.135 331.9);
Tailwind
colors: {
  custom: {
    50: '#ca91c1',
    500: '#b162a7',
    950: '#000000',
  },
}
SCSS
$custom: #b162a7;
$custom-light: #ca91c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b162a7",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 167
  },
  "hsl": {
    "h": 307.595,
    "s": 33.617,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61017,
    "c": 0.13492,
    "h": 331.9
  },
  "luminance": 0.20872
}

Semantic roles & 50–950 ramp

primary
#B162A7
secondary
#A7C8AB
accent
#CA6C5E
background
#FCF9FB
surface
#F9F1F7
border
#D2CBD0
text
#130D12
muted
#827E81

Preview Lab

Preview with #B162A7

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

Preview Lab → · Contrast checker → · Palette generator →

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