#9B7AFE#9B7AFE

#9B7AFE is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.2% C 0.189 H 292.1°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9B7AFE
RGBrgb(155, 122, 254)
HSLhsl(255, 99%, 74%)
HSVhsv(255, 52%, 100%)
CMYKcmyk(39%, 52%, 0%, 0.4%)
CIE-LABlab(59.93, 42.24, -61.63)
CIE-LCHlch(59.93, 74.71, 304.43°)
OKLaboklab(67.19% 0.0709 -0.1748)
OKLCHoklch(67.19% 0.189 292.1)
XYZxyz(38.3617, 28.0424, 97.1383)
Luminance0.2804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7AFE #DDFE7A
analogous
#7A9BFE #9B7AFE #DD7AFE
triadic
#9B7AFE #FE9B7A #7AFE9B
tetradic
#9B7AFE #FE7A9B #DDFE7A #7AFEDD
square
#9B7AFE #FE7A9B #DDFE7A #7AFEDD
split-complementary
#9B7AFE #FEDD7A #9BFE7A
monochromatic
#4002FC #6D3DFE #9B7AFE #C9B7FE #E8E1FF

Accessibility & contrast

On white

3.18
#9B7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#9B7AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7AFE
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7AFE#FFFFFF#000000##000000
##9B7AFE1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4092FF
Deuteranopia (green-blind)
#468EFB
Tritanopia (blue-blind)
#8195B1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9b7afe;
/* rgb */ color: rgb(155, 122, 254);
/* oklch */ color: oklch(67.2% 0.189 292.1);
Tailwind
colors: {
  custom: {
    50: '#bda1ff',
    500: '#9b7afe',
    950: '#000000',
  },
}
SCSS
$custom: #9b7afe;
$custom-light: #bda1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7afe",
  "rgb": {
    "r": 155,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 255,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67192,
    "c": 0.18861,
    "h": 292.1
  },
  "luminance": 0.28043
}

Semantic roles & 50–950 ramp

primary
#9B7AFE
secondary
#EEF7D4
accent
#E600AC
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #9B7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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