#B162BC#B162BC

#B162BC is a mid, vivid purple. Relative luminance 0.217; OKLCH L 62.0% C 0.155 H 322.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B162BC
RGBrgb(177, 98, 188)
HSLhsl(293, 40%, 56%)
HSVhsv(293, 48%, 74%)
CMYKcmyk(5.9%, 47.9%, 0%, 26.3%)
CIE-LABlab(53.72, 45.76, -34.19)
CIE-LCHlch(53.72, 57.12, 323.24°)
OKLaboklab(62% 0.1231 -0.0942)
OKLCHoklch(62% 0.155 322.6)
XYZxyz(31.5753, 21.7147, 50.0953)
Luminance0.2171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162BC #6DBC62
analogous
#8462BC #B162BC #BC629A
triadic
#B162BC #BCB162 #62BCB1
tetradic
#B162BC #BC8462 #6DBC62 #629ABC
square
#B162BC #BC8462 #6DBC62 #629ABC
split-complementary
#B162BC #9ABC62 #62BC84
monochromatic
#6B3173 #93439E #B162BC #C68DCE #DCB8E1

Accessibility & contrast

On white

3.93
#B162BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#B162BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162BC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162BC#FFFFFF#000000##000000
##B162BC1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#567ABF
Deuteranopia (green-blind)
#6D84B9
Tritanopia (blue-blind)
#B36D86
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b162bc;
/* rgb */ color: rgb(177, 98, 188);
/* oklch */ color: oklch(62.0% 0.155 322.6);
Tailwind
colors: {
  custom: {
    50: '#ca91d0',
    500: '#b162bc',
    950: '#000000',
  },
}
SCSS
$custom: #b162bc;
$custom-light: #ca91d0;
$custom-dark: #000000;
JSON
{
  "hex": "#b162bc",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 188
  },
  "hsl": {
    "h": 292.667,
    "s": 40.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.15505,
    "h": 322.6
  },
  "luminance": 0.21713
}

Semantic roles & 50–950 ramp

primary
#B162BC
secondary
#AFCFAA
accent
#D05866
background
#FCF9FC
surface
#F9F1F9
border
#D2CBD2
text
#130D14
muted
#827E82

Preview Lab

Preview with #B162BC

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

Preview Lab → · Contrast checker → · Palette generator →

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