#B162C8#B162C8

#B162C8 is a light, vivid purple. Relative luminance 0.223; OKLCH L 62.6% C 0.167 H 318.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B162C8
RGBrgb(177, 98, 200)
HSLhsl(286, 48%, 58%)
HSVhsv(286, 51%, 78%)
CMYKcmyk(11.5%, 51%, 0%, 21.6%)
CIE-LABlab(54.30, 48.15, -40.17)
CIE-LCHlch(54.30, 62.71, 320.16°)
OKLaboklab(62.61% 0.1248 -0.1115)
OKLCHoklch(62.61% 0.167 318.2)
XYZxyz(32.9230, 22.2538, 57.1935)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162C8 #79C862
analogous
#7E62C8 #B162C8 #C862AC
triadic
#B162C8 #C8B162 #62C8B1
tetradic
#B162C8 #C87E62 #79C862 #62ACC8
square
#B162C8 #C87E62 #79C862 #62ACC8
split-complementary
#B162C8 #ACC862 #62C87E
monochromatic
#6F2E82 #963DAF #B162C8 #C88FD8 #DEBDE8

Accessibility & contrast

On white

3.85
#B162C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#B162C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162C8
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162C8#FFFFFF#000000##000000
##B162C81.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7DCB
Deuteranopia (green-blind)
#6785C5
Tritanopia (blue-blind)
#B1718C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b162c8;
/* rgb */ color: rgb(177, 98, 200);
/* oklch */ color: oklch(62.6% 0.167 318.2);
Tailwind
colors: {
  custom: {
    50: '#ca91d9',
    500: '#b162c8',
    950: '#000000',
  },
}
SCSS
$custom: #b162c8;
$custom-light: #ca91d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b162c8",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 200
  },
  "hsl": {
    "h": 286.471,
    "s": 48.113,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62606,
    "c": 0.16734,
    "h": 318.2
  },
  "luminance": 0.22253
}

Semantic roles & 50–950 ramp

primary
#B162C8
secondary
#B8D7AF
accent
#D8506F
background
#FCF9FD
surface
#F9F1FA
border
#D2CBD3
text
#130D14
muted
#827E83

Preview Lab

Preview with #B162C8

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

Preview Lab → · Contrast checker → · Palette generator →

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