#9D6AFB#9D6AFB

#9D6AFB is a light, highly saturated violet. Relative luminance 0.244; OKLCH L 64.7% C 0.207 H 296.3°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9D6AFB
RGBrgb(157, 106, 251)
HSLhsl(261, 95%, 70%)
HSVhsv(261, 58%, 98%)
CMYKcmyk(37.5%, 57.8%, 0%, 1.6%)
CIE-LABlab(56.53, 50.71, -65.42)
CIE-LCHlch(56.53, 82.77, 307.78°)
OKLaboklab(64.67% 0.0921 -0.1859)
OKLCHoklch(64.67% 0.207 296.3)
XYZxyz(36.4668, 24.4406, 94.0443)
Luminance0.2444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D6AFB #C8FB6A
analogous
#6A80FB #9D6AFB #E56AFB
triadic
#9D6AFB #FB9D6A #6AFB9D
tetradic
#9D6AFB #FB6A80 #C8FB6A #6AFBE5
square
#9D6AFB #FB6A80 #C8FB6A #6AFBE5
split-complementary
#9D6AFB #FBE56A #80FB6A
monochromatic
#5406E4 #762EF9 #9D6AFB #C4A6FD #EBE1FE

Accessibility & contrast

On white

3.57
#9D6AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#9D6AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D6AFB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D6AFB#FFFFFF#000000##000000
##9D6AFB1.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1188FF
Deuteranopia (green-blind)
#2F86F8
Tritanopia (blue-blind)
#8689A9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9d6afb;
/* rgb */ color: rgb(157, 106, 251);
/* oklch */ color: oklch(64.7% 0.207 296.3);
Tailwind
colors: {
  custom: {
    50: '#bf96fd',
    500: '#9d6afb',
    950: '#000000',
  },
}
SCSS
$custom: #9d6afb;
$custom-light: #bf96fd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d6afb",
  "rgb": {
    "r": 157,
    "g": 106,
    "b": 251
  },
  "hsl": {
    "h": 261.103,
    "s": 94.771,
    "l": 70
  },
  "oklch": {
    "l": 0.64669,
    "c": 0.20745,
    "h": 296.3
  },
  "luminance": 0.24441
}

Semantic roles & 50–950 ramp

primary
#9D6AFB
secondary
#E6F5CC
accent
#E60095
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130D18
muted
#827E86

Preview Lab

Preview with #9D6AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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