#9E3EDB#9E3EDB

#9E3EDB is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 57.0% C 0.230 H 308.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9E3EDB
RGBrgb(158, 62, 219)
HSLhsl(277, 69%, 55%)
HSVhsv(277, 72%, 86%)
CMYKcmyk(27.9%, 71.7%, 0%, 14.1%)
CIE-LABlab(46.75, 64.61, -63.23)
CIE-LCHlch(46.75, 90.40, 315.62°)
OKLaboklab(56.97% 0.1436 -0.1793)
OKLCHoklch(56.97% 0.23 308.7)
XYZxyz(28.6067, 15.8293, 68.5525)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E3EDB #7BDB3E
analogous
#503EDB #9E3EDB #DB3EC9
triadic
#9E3EDB #DB9E3E #3EDB9E
tetradic
#9E3EDB #DB503E #7BDB3E #3EC9DB
square
#9E3EDB #DB503E #7BDB3E #3EC9DB
split-complementary
#9E3EDB #C9DB3E #3EDB50
monochromatic
#5B1986 #7F23B9 #9E3EDB #B872E5 #D2A5EE

Accessibility & contrast

On white

5.04
#9E3EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9E3EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E3EDB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E3EDB#FFFFFF#000000##FFFFFF
##9E3EDB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#1170D8
Tritanopia (blue-blind)
#956289
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9e3edb;
/* rgb */ color: rgb(158, 62, 219);
/* oklch */ color: oklch(57.0% 0.230 308.7);
Tailwind
colors: {
  custom: {
    50: '#c07ce7',
    500: '#9e3edb',
    950: '#000000',
  },
}
SCSS
$custom: #9e3edb;
$custom-light: #c07ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e3edb",
  "rgb": {
    "r": 158,
    "g": 62,
    "b": 219
  },
  "hsl": {
    "h": 276.688,
    "s": 68.559,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56971,
    "c": 0.22968,
    "h": 308.7
  },
  "luminance": 0.15829
}

Semantic roles & 50–950 ramp

primary
#9E3EDB
secondary
#B3DB99
accent
#EB3C80
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E3EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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