#B162D6#B162D6

#B162D6 is a light, vivid purple. Relative luminance 0.229; OKLCH L 63.4% C 0.182 H 313.8°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#B162D6
RGBrgb(177, 98, 214)
HSLhsl(281, 59%, 61%)
HSVhsv(281, 54%, 84%)
CMYKcmyk(17.3%, 54.2%, 0%, 16.1%)
CIE-LABlab(55.01, 51.06, -47.01)
CIE-LCHlch(55.01, 69.40, 317.36°)
OKLaboklab(63.36% 0.1261 -0.1314)
OKLCHoklch(63.36% 0.182 313.8)
XYZxyz(34.6347, 22.9385, 66.2084)
Luminance0.2294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B162D6 #87D662
analogous
#7762D6 #B162D6 #D662C1
triadic
#B162D6 #D6B162 #62D6B1
tetradic
#B162D6 #D67762 #87D662 #62C1D6
square
#B162D6 #D67762 #87D662 #62C1D6
split-complementary
#B162D6 #C1D662 #62D677
monochromatic
#732796 #9834C7 #B162D6 #C993E3 #E1C3EF

Accessibility & contrast

On white

3.76
#B162D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#B162D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B162D6
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B162D6#FFFFFF#000000##000000
##B162D61.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#447FDA
Deuteranopia (green-blind)
#5F86D3
Tritanopia (blue-blind)
#AE7593
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #b162d6;
/* rgb */ color: rgb(177, 98, 214);
/* oklch */ color: oklch(63.4% 0.182 313.8);
Tailwind
colors: {
  custom: {
    50: '#cb92e3',
    500: '#b162d6',
    950: '#000000',
  },
}
SCSS
$custom: #b162d6;
$custom-light: #cb92e3;
$custom-dark: #000000;
JSON
{
  "hex": "#b162d6",
  "rgb": {
    "r": 177,
    "g": 98,
    "b": 214
  },
  "hsl": {
    "h": 280.862,
    "s": 58.586,
    "l": 61.176
  },
  "oklch": {
    "l": 0.63364,
    "c": 0.18209,
    "h": 313.8
  },
  "luminance": 0.22938
}

Semantic roles & 50–950 ramp

primary
#B162D6
secondary
#C2E0B4
accent
#C61F55
background
#FCF9FD
surface
#F9F1FB
border
#D2CBD4
text
#140D15
muted
#827E83

Preview Lab

Preview with #B162D6

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

Preview Lab → · Contrast checker → · Palette generator →

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