#B172DC#B172DC

#B172DC is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.1% C 0.163 H 310.1°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#B172DC
RGBrgb(177, 114, 220)
HSLhsl(276, 60%, 65%)
HSVhsv(276, 48%, 86%)
CMYKcmyk(19.5%, 48.2%, 0%, 13.7%)
CIE-LABlab(58.56, 43.94, -44.78)
CIE-LCHlch(58.56, 62.74, 314.45°)
OKLaboklab(66.09% 0.1051 -0.125)
OKLCHoklch(66.09% 0.163 310.1)
XYZxyz(37.0646, 26.5497, 70.8683)
Luminance0.2655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172DC #9DDC72
analogous
#7C72DC #B172DC #DC72D2
triadic
#B172DC #DCB172 #72DCB1
tetradic
#B172DC #DC7C72 #9DDC72 #72D2DC
square
#B172DC #DC7C72 #9DDC72 #72D2DC
split-complementary
#B172DC #D2DC72 #72DC7C
monochromatic
#762AAA #9641D0 #B172DC #CCA3E8 #E7D4F4

Accessibility & contrast

On white

3.33
#B172DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#B172DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172DC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172DC#FFFFFF#000000##000000
##B172DC1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#588AE0
Deuteranopia (green-blind)
#6A8ED9
Tritanopia (blue-blind)
#AC839D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b172dc;
/* rgb */ color: rgb(177, 114, 220);
/* oklch */ color: oklch(66.1% 0.163 310.1);
Tailwind
colors: {
  custom: {
    50: '#ca9ce7',
    500: '#b172dc',
    950: '#000000',
  },
}
SCSS
$custom: #b172dc;
$custom-light: #ca9ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#b172dc",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 220
  },
  "hsl": {
    "h": 275.66,
    "s": 60.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.66087,
    "c": 0.16329,
    "h": 310.1
  },
  "luminance": 0.26549
}

Semantic roles & 50–950 ramp

primary
#B172DC
secondary
#D2E7C3
accent
#C81E63
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B172DC

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

Preview Lab → · Contrast checker → · Palette generator →

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