#9A71DB#9A71DB

#9A71DB is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.5% C 0.158 H 299.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9A71DB
RGBrgb(154, 113, 219)
HSLhsl(263, 60%, 65%)
HSVhsv(263, 48%, 86%)
CMYKcmyk(29.7%, 48.4%, 0%, 14.1%)
CIE-LABlab(55.88, 38.05, -48.61)
CIE-LCHlch(55.88, 61.73, 308.06°)
OKLaboklab(63.53% 0.0782 -0.1367)
OKLCHoklch(63.53% 0.158 299.8)
XYZxyz(32.0147, 23.7945, 69.9102)
Luminance0.2379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A71DB #B2DB71
analogous
#717DDB #9A71DB #CF71DB
triadic
#9A71DB #DB9A71 #71DB9A
tetradic
#9A71DB #DB717D #B2DB71 #71DBCF
square
#9A71DB #DB717D #B2DB71 #71DBCF
split-complementary
#9A71DB #DBCF71 #7DDB71
monochromatic
#5B2AA7 #7740CF #9A71DB #BDA2E7 #DFD3F4

Accessibility & contrast

On white

3.65
#9A71DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#9A71DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A71DB
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A71DB#FFFFFF#000000##000000
##9A71DB1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F86DF
Deuteranopia (green-blind)
#5985D8
Tritanopia (blue-blind)
#8D859C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9a71db;
/* rgb */ color: rgb(154, 113, 219);
/* oklch */ color: oklch(63.5% 0.158 299.8);
Tailwind
colors: {
  custom: {
    50: '#ba9ae7',
    500: '#9a71db',
    950: '#000000',
  },
}
SCSS
$custom: #9a71db;
$custom-light: #ba9ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a71db",
  "rgb": {
    "r": 154,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 263.208,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63528,
    "c": 0.1575,
    "h": 299.8
  },
  "luminance": 0.23795
}

Semantic roles & 50–950 ramp

primary
#9A71DB
secondary
#D8E6C2
accent
#C71E86
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9A71DB

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

Preview Lab → · Contrast checker → · Palette generator →

#9A71DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva