#B172DD#B172DD

#B172DD is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.1% C 0.164 H 309.8°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#B172DD
RGBrgb(177, 114, 221)
HSLhsl(275, 61%, 66%)
HSVhsv(275, 48%, 87%)
CMYKcmyk(19.9%, 48.4%, 0%, 13.3%)
CIE-LABlab(58.60, 44.16, -45.26)
CIE-LCHlch(58.60, 63.24, 314.29°)
OKLaboklab(66.14% 0.1052 -0.1264)
OKLCHoklch(66.14% 0.164 309.8)
XYZxyz(37.1975, 26.6028, 71.5679)
Luminance0.2660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B172DD #9EDD72
analogous
#7B72DD #B172DD #DD72D3
triadic
#B172DD #DDB172 #72DDB1
tetradic
#B172DD #DD7B72 #9EDD72 #72D3DD
square
#B172DD #DD7B72 #9EDD72 #72D3DD
split-complementary
#B172DD #D3DD72 #72DD7B
monochromatic
#7629AB #9641D1 #B172DD #CCA3E9 #E8D5F5

Accessibility & contrast

On white

3.32
#B172DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#B172DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B172DD
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B172DD#FFFFFF#000000##000000
##B172DD1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#578AE1
Deuteranopia (green-blind)
#698EDA
Tritanopia (blue-blind)
#AB849D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #b172dd;
/* rgb */ color: rgb(177, 114, 221);
/* oklch */ color: oklch(66.1% 0.164 309.8);
Tailwind
colors: {
  custom: {
    50: '#ca9ce8',
    500: '#b172dd',
    950: '#000000',
  },
}
SCSS
$custom: #b172dd;
$custom-light: #ca9ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#b172dd",
  "rgb": {
    "r": 177,
    "g": 114,
    "b": 221
  },
  "hsl": {
    "h": 275.327,
    "s": 61.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.6614,
    "c": 0.16445,
    "h": 309.8
  },
  "luminance": 0.26602
}

Semantic roles & 50–950 ramp

primary
#B172DD
secondary
#D2E7C4
accent
#C91D63
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #B172DD

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

Preview Lab → · Contrast checker → · Palette generator →

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