#9E7AFD#9E7AFD

#9E7AFD is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.4% C 0.187 H 293.4°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#9E7AFD
RGBrgb(158, 122, 253)
HSLhsl(256, 97%, 74%)
HSVhsv(256, 52%, 99%)
CMYKcmyk(37.5%, 51.8%, 0%, 0.8%)
CIE-LABlab(60.14, 42.67, -60.72)
CIE-LCHlch(60.14, 74.21, 305.10°)
OKLaboklab(67.4% 0.0744 -0.1721)
OKLCHoklch(67.4% 0.187 293.4)
XYZxyz(38.7850, 28.2791, 96.3244)
Luminance0.2828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7AFD #D9FD7A
analogous
#7A97FD #9E7AFD #E07AFD
triadic
#9E7AFD #FD9E7A #7AFD9E
tetradic
#9E7AFD #FD7A97 #D9FD7A #7AFDE0
square
#9E7AFD #FD7A97 #D9FD7A #7AFDE0
split-complementary
#9E7AFD #FDE07A #97FD7A
monochromatic
#4704F9 #723EFC #9E7AFD #CAB6FE #E9E1FF

Accessibility & contrast

On white

3.16
#9E7AFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#9E7AFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7AFD
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7AFD#FFFFFF#000000##000000
##9E7AFD1.003.166.666.66
#FFFFFF3.161.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4393FF
Deuteranopia (green-blind)
#4A8FFA
Tritanopia (blue-blind)
#8695B0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #9e7afd;
/* rgb */ color: rgb(158, 122, 253);
/* oklch */ color: oklch(67.4% 0.187 293.4);
Tailwind
colors: {
  custom: {
    50: '#bfa1ff',
    500: '#9e7afd',
    950: '#000000',
  },
}
SCSS
$custom: #9e7afd;
$custom-light: #bfa1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7afd",
  "rgb": {
    "r": 158,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 256.489,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.67397,
    "c": 0.18747,
    "h": 293.4
  },
  "luminance": 0.2828
}

Semantic roles & 50–950 ramp

primary
#9E7AFD
secondary
#EDF7D4
accent
#E600A6
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #9E7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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