#B162BB#B162BB

#B162BB is a mid, vivid purple. Relative luminance 0.217; OKLCH L 61.9% C 0.154 H 323.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B162BB
RGBrgb(177, 98, 187)
HSLhsl(293, 40%, 56%)
HSVhsv(293, 48%, 73%)
CMYKcmyk(5.3%, 47.6%, 0%, 26.7%)
CIE-LABlab(53.68, 45.57, -33.68)
CIE-LCHlch(53.68, 56.66, 323.53°)
OKLaboklab(61.95% 0.123 -0.0928)
OKLCHoklch(61.95% 0.154 323)
XYZxyz(31.4679, 21.6717, 49.5296)
Luminance0.2167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162BB #6CBB62
analogous
#8462BB #B162BB #BB6298
triadic
#B162BB #BBB162 #62BBB1
tetradic
#B162BB #BB8462 #6CBB62 #6298BB
square
#B162BB #BB8462 #6CBB62 #6298BB
split-complementary
#B162BB #98BB62 #62BB84
monochromatic
#6A3171 #92449C #B162BB #C68DCD #DBB7E0

Accessibility & contrast

On white

3.94
#B162BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#B162BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162BB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162BB#FFFFFF#000000##000000
##B162BB1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#567ABE
Deuteranopia (green-blind)
#6D83B8
Tritanopia (blue-blind)
#B46D86
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b162bb;
/* rgb */ color: rgb(177, 98, 187);
/* oklch */ color: oklch(61.9% 0.154 323.0);
Tailwind
colors: {
  custom: {
    50: '#ca91d0',
    500: '#b162bb',
    950: '#000000',
  },
}
SCSS
$custom: #b162bb;
$custom-light: #ca91d0;
$custom-dark: #000000;
JSON
{
  "hex": "#b162bb",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 187
  },
  "hsl": {
    "h": 293.258,
    "s": 39.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61946,
    "c": 0.15404,
    "h": 323
  },
  "luminance": 0.2167
}

Semantic roles & 50–950 ramp

primary
#B162BB
secondary
#AECFAA
accent
#CF5866
background
#FCF9FC
surface
#F9F1F9
border
#D2CBD2
text
#130D14
muted
#827E82

Preview Lab

Preview with #B162BB

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

Preview Lab → · Contrast checker → · Palette generator →

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