#B172CA#B172CA

#B172CA is a light, vivid purple. Relative luminance 0.256; OKLCH L 65.2% C 0.143 H 315.8°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#B172CA
RGBrgb(177, 114, 202)
HSLhsl(283, 45%, 62%)
HSVhsv(283, 44%, 79%)
CMYKcmyk(12.4%, 43.6%, 0%, 20.8%)
CIE-LABlab(57.70, 40.05, -35.97)
CIE-LCHlch(57.70, 53.83, 318.08°)
OKLaboklab(65.17% 0.1024 -0.0995)
OKLCHoklch(65.17% 0.143 315.8)
XYZxyz(34.8078, 25.6469, 58.9824)
Luminance0.2565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172CA #8BCA72
analogous
#8572CA #B172CA #CA72B7
triadic
#B172CA #CAB172 #72CAB1
tetradic
#B172CA #CA8572 #8BCA72 #72B7CA
square
#B172CA #CA8572 #8BCA72 #72B7CA
split-complementary
#B172CA #B7CA72 #72CA85
monochromatic
#74358D #9846B9 #B172CA #CA9EDB #E2CBEB

Accessibility & contrast

On white

3.43
#B172CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#B172CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172CA
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172CA#FFFFFF#000000##000000
##B172CA1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CD
Deuteranopia (green-blind)
#738DC7
Tritanopia (blue-blind)
#B07E94
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #b172ca;
/* rgb */ color: rgb(177, 114, 202);
/* oklch */ color: oklch(65.2% 0.143 315.8);
Tailwind
colors: {
  custom: {
    50: '#ca9cda',
    500: '#b172ca',
    950: '#000000',
  },
}
SCSS
$custom: #b172ca;
$custom-light: #ca9cda;
$custom-dark: #000000;
JSON
{
  "hex": "#b172ca",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 282.955,
    "s": 45.361,
    "l": 61.961
  },
  "oklch": {
    "l": 0.6517,
    "c": 0.14277,
    "h": 315.8
  },
  "luminance": 0.25646
}

Semantic roles & 50–950 ramp

primary
#B172CA
secondary
#C5DCBC
accent
#B92D55
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #B172CA

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

Preview Lab → · Contrast checker → · Palette generator →

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