#B162BA#B162BA

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

Color values

HEX#B162BA
RGBrgb(177, 98, 186)
HSLhsl(294, 39%, 56%)
HSVhsv(294, 47%, 73%)
CMYKcmyk(4.8%, 47.3%, 0%, 27.1%)
CIE-LABlab(53.63, 45.37, -33.18)
CIE-LCHlch(53.63, 56.21, 323.82°)
OKLaboklab(61.9% 0.1228 -0.0913)
OKLCHoklch(61.9% 0.153 323.4)
XYZxyz(31.3612, 21.6290, 48.9677)
Luminance0.2163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162BA #6BBA62
analogous
#8562BA #B162BA #BA6297
triadic
#B162BA #BAB162 #62BAB1
tetradic
#B162BA #BA8562 #6BBA62 #6297BA
square
#B162BA #BA8562 #6BBA62 #6297BA
split-complementary
#B162BA #97BA62 #62BA85
monochromatic
#6A3170 #92449B #B162BA #C68DCD #DBB7DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B162BA#FFFFFF#000000##000000
##B162BA1.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)
#577ABD
Deuteranopia (green-blind)
#6E83B7
Tritanopia (blue-blind)
#B46D85
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #b162ba;
/* rgb */ color: rgb(177, 98, 186);
/* oklch */ color: oklch(61.9% 0.153 323.4);
Tailwind
colors: {
  custom: {
    50: '#ca91cf',
    500: '#b162ba',
    950: '#000000',
  },
}
SCSS
$custom: #b162ba;
$custom-light: #ca91cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b162ba",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 293.864,
    "s": 38.938,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61897,
    "c": 0.15305,
    "h": 323.4
  },
  "luminance": 0.21628
}

Semantic roles & 50–950 ramp

primary
#B162BA
secondary
#ADCEAA
accent
#CF5965
background
#FCF9FC
surface
#F9F1F9
border
#D2CBD2
text
#130D14
muted
#827E82

Preview Lab

Preview with #B162BA

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

Preview Lab → · Contrast checker → · Palette generator →

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