#9E7AFB#9E7AFB

#9E7AFB is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.3% C 0.185 H 293.7°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#9E7AFB
RGBrgb(158, 122, 251)
HSLhsl(257, 94%, 73%)
HSVhsv(257, 51%, 98%)
CMYKcmyk(37.1%, 51.4%, 0%, 1.6%)
CIE-LABlab(60.03, 42.15, -59.80)
CIE-LCHlch(60.03, 73.16, 305.18°)
OKLaboklab(67.27% 0.0743 -0.1694)
OKLCHoklch(67.27% 0.185 293.7)
XYZxyz(38.4681, 28.1524, 94.6553)
Luminance0.2815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7AFB #D7FB7A
analogous
#7A96FB #9E7AFB #DE7AFB
triadic
#9E7AFB #FB9E7A #7AFB9E
tetradic
#9E7AFB #FB7A96 #D7FB7A #7AFBDE
square
#9E7AFB #FB7A96 #D7FB7A #7AFBDE
split-complementary
#9E7AFB #FBDE7A #96FB7A
monochromatic
#4907F3 #733FF9 #9E7AFB #C9B5FD #E9E1FE

Accessibility & contrast

On white

3.17
#9E7AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#9E7AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7AFB
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7AFB#FFFFFF#000000##000000
##9E7AFB1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4592FF
Deuteranopia (green-blind)
#4C8EF8
Tritanopia (blue-blind)
#8794AF
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #9e7afb;
/* rgb */ color: rgb(158, 122, 251);
/* oklch */ color: oklch(67.3% 0.185 293.7);
Tailwind
colors: {
  custom: {
    50: '#bfa1fd',
    500: '#9e7afb',
    950: '#000000',
  },
}
SCSS
$custom: #9e7afb;
$custom-light: #bfa1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7afb",
  "rgb": {
    "r": 158,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 256.744,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.67275,
    "c": 0.18495,
    "h": 293.7
  },
  "luminance": 0.28153
}

Semantic roles & 50–950 ramp

primary
#9E7AFB
secondary
#EDF6D5
accent
#E600A5
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #9E7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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