#9A7AFE#9A7AFE

#9A7AFE is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.1% C 0.189 H 291.7°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#9A7AFE
RGBrgb(154, 122, 254)
HSLhsl(255, 99%, 74%)
HSVhsv(255, 52%, 100%)
CMYKcmyk(39.4%, 52%, 0%, 0.4%)
CIE-LABlab(59.84, 42.00, -61.77)
CIE-LCHlch(59.84, 74.70, 304.22°)
OKLaboklab(67.11% 0.0696 -0.1753)
OKLCHoklch(67.11% 0.189 291.7)
XYZxyz(38.1705, 27.9438, 97.1293)
Luminance0.2794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7AFE #DEFE7A
analogous
#7A9CFE #9A7AFE #DC7AFE
triadic
#9A7AFE #FE9A7A #7AFE9A
tetradic
#9A7AFE #FE7A9C #DEFE7A #7AFEDC
square
#9A7AFE #FE7A9C #DEFE7A #7AFEDC
split-complementary
#9A7AFE #FEDC7A #9CFE7A
monochromatic
#3E02FC #6C3DFE #9A7AFE #C8B7FE #E8E1FF

Accessibility & contrast

On white

3.19
#9A7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#9A7AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7AFE
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7AFE#FFFFFF#000000##000000
##9A7AFE1.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4092FF
Deuteranopia (green-blind)
#458DFB
Tritanopia (blue-blind)
#7F95B1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9a7afe;
/* rgb */ color: rgb(154, 122, 254);
/* oklch */ color: oklch(67.1% 0.189 291.7);
Tailwind
colors: {
  custom: {
    50: '#bda1ff',
    500: '#9a7afe',
    950: '#000000',
  },
}
SCSS
$custom: #9a7afe;
$custom-light: #bda1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7afe",
  "rgb": {
    "r": 154,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 254.545,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67105,
    "c": 0.18859,
    "h": 291.7
  },
  "luminance": 0.27945
}

Semantic roles & 50–950 ramp

primary
#9A7AFE
secondary
#EFF7D4
accent
#E600AE
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #9A7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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