#9F3EDB#9F3EDB

#9F3EDB is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 57.1% C 0.230 H 309.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9F3EDB
RGBrgb(159, 62, 219)
HSLhsl(277, 69%, 55%)
HSVhsv(277, 72%, 86%)
CMYKcmyk(27.4%, 71.7%, 0%, 14.1%)
CIE-LABlab(46.88, 64.80, -63.00)
CIE-LCHlch(46.88, 90.38, 315.80°)
OKLaboklab(57.09% 0.1449 -0.1786)
OKLCHoklch(57.09% 0.23 309.1)
XYZxyz(28.8043, 15.9312, 68.5617)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3EDB #7ADB3E
analogous
#503EDB #9F3EDB #DB3EC9
triadic
#9F3EDB #DB9F3E #3EDB9F
tetradic
#9F3EDB #DB503E #7ADB3E #3EC9DB
square
#9F3EDB #DB503E #7ADB3E #3EC9DB
split-complementary
#9F3EDB #C9DB3E #3EDB50
monochromatic
#5C1986 #8023B9 #9F3EDB #B972E5 #D2A5EE

Accessibility & contrast

On white

5.02
#9F3EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9F3EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3EDB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3EDB#FFFFFF#000000##FFFFFF
##9F3EDB1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f3edb;
/* rgb */ color: rgb(159, 62, 219);
/* oklch */ color: oklch(57.1% 0.230 309.1);
Tailwind
colors: {
  custom: {
    50: '#c07ce7',
    500: '#9f3edb',
    950: '#000000',
  },
}
SCSS
$custom: #9f3edb;
$custom-light: #c07ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3edb",
  "rgb": {
    "r": 159,
    "g": 62,
    "b": 219
  },
  "hsl": {
    "h": 277.07,
    "s": 68.559,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57094,
    "c": 0.22996,
    "h": 309.1
  },
  "luminance": 0.15931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F3EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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