#B172DB#B172DB

#B172DB is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.0% C 0.162 H 310.3°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#B172DB
RGBrgb(177, 114, 219)
HSLhsl(276, 59%, 65%)
HSVhsv(276, 48%, 86%)
CMYKcmyk(19.2%, 47.9%, 0%, 14.1%)
CIE-LABlab(58.51, 43.72, -44.30)
CIE-LCHlch(58.51, 62.24, 314.62°)
OKLaboklab(66.03% 0.105 -0.1236)
OKLCHoklch(66.03% 0.162 310.3)
XYZxyz(36.9326, 26.4968, 70.1729)
Luminance0.2650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172DB #9CDB72
analogous
#7C72DB #B172DB #DB72D0
triadic
#B172DB #DBB172 #72DBB1
tetradic
#B172DB #DB7C72 #9CDB72 #72D0DB
square
#B172DB #DB7C72 #9CDB72 #72D0DB
split-complementary
#B172DB #D0DB72 #72DB7C
monochromatic
#762BA8 #9641CF #B172DB #CCA3E7 #E7D4F4

Accessibility & contrast

On white

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

On black

6.30
#B172DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172DB
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172DB#FFFFFF#000000##000000
##B172DB1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#598ADF
Deuteranopia (green-blind)
#6A8ED8
Tritanopia (blue-blind)
#AC839C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b172db;
/* rgb */ color: rgb(177, 114, 219);
/* oklch */ color: oklch(66.0% 0.162 310.3);
Tailwind
colors: {
  custom: {
    50: '#ca9ce6',
    500: '#b172db',
    950: '#000000',
  },
}
SCSS
$custom: #b172db;
$custom-light: #ca9ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#b172db",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 276,
    "s": 59.322,
    "l": 65.294
  },
  "oklch": {
    "l": 0.66034,
    "c": 0.16214,
    "h": 310.3
  },
  "luminance": 0.26496
}

Semantic roles & 50–950 ramp

primary
#B172DB
secondary
#D1E6C3
accent
#C71F62
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B172DB

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

Preview Lab → · Contrast checker → · Palette generator →

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