#B162CC#B162CC

#B162CC is a light, vivid purple. Relative luminance 0.224; OKLCH L 62.8% C 0.172 H 316.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#B162CC
RGBrgb(177, 98, 204)
HSLhsl(285, 51%, 59%)
HSVhsv(285, 52%, 80%)
CMYKcmyk(13.2%, 52%, 0%, 20%)
CIE-LABlab(54.49, 48.97, -42.14)
CIE-LCHlch(54.49, 64.61, 319.29°)
OKLaboklab(62.82% 0.1252 -0.1172)
OKLCHoklch(62.82% 0.172 316.9)
XYZxyz(33.3966, 22.4432, 59.6878)
Luminance0.2244 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162CC #7DCC62
analogous
#7C62CC #B162CC #CC62B2
triadic
#B162CC #CCB162 #62CCB1
tetradic
#B162CC #CC7C62 #7DCC62 #62B2CC
square
#B162CC #CC7C62 #7DCC62 #62B2CC
split-complementary
#B162CC #B2CC62 #62CC7C
monochromatic
#702C88 #973BB6 #B162CC #C890DB #DFBEEA

Accessibility & contrast

On white

3.83
#B162CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#B162CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162CC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162CC#FFFFFF#000000##000000
##B162CC1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7DD0
Deuteranopia (green-blind)
#6585C9
Tritanopia (blue-blind)
#B0728E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b162cc;
/* rgb */ color: rgb(177, 98, 204);
/* oklch */ color: oklch(62.8% 0.172 316.9);
Tailwind
colors: {
  custom: {
    50: '#ca91dc',
    500: '#b162cc',
    950: '#000000',
  },
}
SCSS
$custom: #b162cc;
$custom-light: #ca91dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b162cc",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 204
  },
  "hsl": {
    "h": 284.717,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.62817,
    "c": 0.17152,
    "h": 316.9
  },
  "luminance": 0.22442
}

Semantic roles & 50–950 ramp

primary
#B162CC
secondary
#BBDAB0
accent
#DA4D71
background
#FCF9FD
surface
#F9F1FB
border
#D2CBD4
text
#140D15
muted
#827E83

Preview Lab

Preview with #B162CC

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

Preview Lab → · Contrast checker → · Palette generator →

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