#9E7EF2#9E7EF2

#9E7EF2 is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.4% C 0.168 H 294.2°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#9E7EF2
RGBrgb(158, 126, 242)
HSLhsl(257, 82%, 72%)
HSVhsv(257, 48%, 95%)
CMYKcmyk(34.7%, 47.9%, 0%, 5.1%)
CIE-LABlab(60.43, 37.56, -54.19)
CIE-LCHlch(60.43, 65.94, 304.73°)
OKLaboklab(67.41% 0.0686 -0.1529)
OKLCHoklch(67.41% 0.168 294.2)
XYZxyz(37.5843, 28.6009, 87.5275)
Luminance0.2860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7EF2 #D2F27E
analogous
#7E98F2 #9E7EF2 #D87EF2
triadic
#9E7EF2 #F29E7E #7EF29E
tetradic
#9E7EF2 #F27E98 #D2F27E #7EF2D8
square
#9E7EF2 #F27E98 #D2F27E #7EF2D8
split-complementary
#9E7EF2 #F2D87E #98F27E
monochromatic
#4E16DF #7446EC #9E7EF2 #C8B6F8 #EAE3FC

Accessibility & contrast

On white

3.12
#9E7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#9E7EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7EF2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7EF2#FFFFFF#000000##000000
##9E7EF21.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#5A90EF
Tritanopia (blue-blind)
#8A95AD
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #9e7ef2;
/* rgb */ color: rgb(158, 126, 242);
/* oklch */ color: oklch(67.4% 0.168 294.2);
Tailwind
colors: {
  custom: {
    50: '#bea4f7',
    500: '#9e7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #9e7ef2;
$custom-light: #bea4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7ef2",
  "rgb": {
    "r": 158,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 256.552,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67414,
    "c": 0.1676,
    "h": 294.2
  },
  "luminance": 0.28602
}

Semantic roles & 50–950 ramp

primary
#9E7EF2
secondary
#ECF4D7
accent
#DE07A3
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #9E7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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