#B172DF#B172DF

#B172DF is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.2% C 0.167 H 309.2°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#B172DF
RGBrgb(177, 114, 223)
HSLhsl(275, 63%, 66%)
HSVhsv(275, 49%, 87%)
CMYKcmyk(20.6%, 48.9%, 0%, 12.5%)
CIE-LABlab(58.70, 44.60, -46.23)
CIE-LCHlch(58.70, 64.24, 313.98°)
OKLaboklab(66.25% 0.1055 -0.1292)
OKLCHoklch(66.25% 0.167 309.2)
XYZxyz(37.4655, 26.7100, 72.9796)
Luminance0.2671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172DF #A0DF72
analogous
#7A72DF #B172DF #DF72D6
triadic
#B172DF #DFB172 #72DFB1
tetradic
#B172DF #DF7A72 #A0DF72 #72D6DF
square
#B172DF #DF7A72 #A0DF72 #72D6DF
split-complementary
#B172DF #D6DF72 #72DF7A
monochromatic
#7628AF #9540D4 #B172DF #CDA4EA #E8D6F6

Accessibility & contrast

On white

3.31
#B172DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#B172DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172DF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172DF#FFFFFF#000000##000000
##B172DF1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#568AE3
Deuteranopia (green-blind)
#688EDC
Tritanopia (blue-blind)
#AB849E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b172df;
/* rgb */ color: rgb(177, 114, 223);
/* oklch */ color: oklch(66.2% 0.167 309.2);
Tailwind
colors: {
  custom: {
    50: '#ca9ce9',
    500: '#b172df',
    950: '#000000',
  },
}
SCSS
$custom: #b172df;
$custom-light: #ca9ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#b172df",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 223
  },
  "hsl": {
    "h": 274.679,
    "s": 63.006,
    "l": 66.078
  },
  "oklch": {
    "l": 0.66247,
    "c": 0.16675,
    "h": 309.2
  },
  "luminance": 0.26709
}

Semantic roles & 50–950 ramp

primary
#B172DF
secondary
#D4E8C4
accent
#CB1B65
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B172DF

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

Preview Lab → · Contrast checker → · Palette generator →

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