#9172CF#9172CF

#9172CF is a light, vivid violet. Relative luminance 0.226; OKLCH L 62.2% C 0.139 H 297.6°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9172CF
RGBrgb(145, 114, 207)
HSLhsl(260, 49%, 63%)
HSVhsv(260, 45%, 81%)
CMYKcmyk(30%, 44.9%, 0%, 18.8%)
CIE-LABlab(54.62, 32.05, -43.88)
CIE-LCHlch(54.62, 54.34, 306.14°)
OKLaboklab(62.17% 0.0644 -0.1231)
OKLCHoklch(62.17% 0.139 297.6)
XYZxyz(28.9541, 22.5591, 61.8483)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9172CF #B0CF72
analogous
#7281CF #9172CF #BF72CF
triadic
#9172CF #CF9172 #72CF91
tetradic
#9172CF #CF7281 #B0CF72 #72CFBF
square
#9172CF #CF7281 #B0CF72 #72CFBF
split-complementary
#9172CF #CFBF72 #81CF72
monochromatic
#533294 #6D44BF #9172CF #B5A0DF #D8CDEE

Accessibility & contrast

On white

3.81
#9172CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#9172CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9172CF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9172CF#FFFFFF#000000##000000
##9172CF1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5683D2
Deuteranopia (green-blind)
#5C82CD
Tritanopia (blue-blind)
#848397
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9172cf;
/* rgb */ color: rgb(145, 114, 207);
/* oklch */ color: oklch(62.2% 0.139 297.6);
Tailwind
colors: {
  custom: {
    50: '#b39bde',
    500: '#9172cf',
    950: '#000000',
  },
}
SCSS
$custom: #9172cf;
$custom-light: #b39bde;
$custom-dark: #000000;
JSON
{
  "hex": "#9172cf",
  "rgb": {
    "r": 145,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 260,
    "s": 49.206,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62171,
    "c": 0.13895,
    "h": 297.6
  },
  "luminance": 0.22559
}

Semantic roles & 50–950 ramp

primary
#9172CF
secondary
#D4DFBE
accent
#BD298B
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9172CF

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

Preview Lab → · Contrast checker → · Palette generator →

#9172CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva