#B162CA#B162CA

#B162CA is a light, vivid purple. Relative luminance 0.223; OKLCH L 62.7% C 0.169 H 317.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#B162CA
RGBrgb(177, 98, 202)
HSLhsl(286, 50%, 59%)
HSVhsv(286, 51%, 79%)
CMYKcmyk(12.4%, 51.5%, 0%, 20.8%)
CIE-LABlab(54.39, 48.56, -41.16)
CIE-LCHlch(54.39, 63.66, 319.72°)
OKLaboklab(62.71% 0.125 -0.1144)
OKLCHoklch(62.71% 0.169 317.5)
XYZxyz(33.1583, 22.3479, 58.4326)
Luminance0.2235 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162CA #7BCA62
analogous
#7D62CA #B162CA #CA62AF
triadic
#B162CA #CAB162 #62CAB1
tetradic
#B162CA #CA7D62 #7BCA62 #62AFCA
square
#B162CA #CA7D62 #7BCA62 #62AFCA
split-complementary
#B162CA #AFCA62 #62CA7D
monochromatic
#702D85 #963CB3 #B162CA #C890D9 #DEBEE9

Accessibility & contrast

On white

3.84
#B162CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#B162CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162CA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162CA#FFFFFF#000000##000000
##B162CA1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7DCD
Deuteranopia (green-blind)
#6685C7
Tritanopia (blue-blind)
#B1718D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b162ca;
/* rgb */ color: rgb(177, 98, 202);
/* oklch */ color: oklch(62.7% 0.169 317.5);
Tailwind
colors: {
  custom: {
    50: '#ca91da',
    500: '#b162ca',
    950: '#000000',
  },
}
SCSS
$custom: #b162ca;
$custom-light: #ca91da;
$custom-dark: #000000;
JSON
{
  "hex": "#b162ca",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 202
  },
  "hsl": {
    "h": 285.577,
    "s": 49.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.62711,
    "c": 0.16943,
    "h": 317.5
  },
  "luminance": 0.22347
}

Semantic roles & 50–950 ramp

primary
#B162CA
secondary
#B9D8AF
accent
#D94F70
background
#FCF9FD
surface
#F9F1FB
border
#D2CBD4
text
#130D15
muted
#827E83

Preview Lab

Preview with #B162CA

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

Preview Lab → · Contrast checker → · Palette generator →

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