#9F3ED9#9F3ED9

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

Color values

HEX#9F3ED9
RGBrgb(159, 62, 217)
HSLhsl(278, 67%, 55%)
HSVhsv(278, 71%, 85%)
CMYKcmyk(26.7%, 71.4%, 0%, 14.9%)
CIE-LABlab(46.75, 64.37, -62.08)
CIE-LCHlch(46.75, 89.43, 316.04°)
OKLaboklab(56.95% 0.1452 -0.1759)
OKLCHoklch(56.95% 0.228 309.5)
XYZxyz(28.5426, 15.8265, 67.1834)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3ED9 #78D93E
analogous
#513ED9 #9F3ED9 #D93EC6
triadic
#9F3ED9 #D99F3E #3ED99F
tetradic
#9F3ED9 #D9513E #78D93E #3EC6D9
square
#9F3ED9 #D9513E #78D93E #3EC6D9
split-complementary
#9F3ED9 #C6D93E #3ED951
monochromatic
#5C1A83 #7F24B6 #9F3ED9 #B871E3 #D2A4ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F3ED9#FFFFFF#000000##FFFFFF
##9F3ED91.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)
#006BDD
Deuteranopia (green-blind)
#1A70D6
Tritanopia (blue-blind)
#976188
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f3ed9;
/* rgb */ color: rgb(159, 62, 217);
/* oklch */ color: oklch(57.0% 0.228 309.5);
Tailwind
colors: {
  custom: {
    50: '#c07ce6',
    500: '#9f3ed9',
    950: '#000000',
  },
}
SCSS
$custom: #9f3ed9;
$custom-light: #c07ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3ed9",
  "rgb": {
    "r": 159,
    "g": 62,
    "b": 217
  },
  "hsl": {
    "h": 277.548,
    "s": 67.1,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56953,
    "c": 0.22806,
    "h": 309.5
  },
  "luminance": 0.15826
}

Semantic roles & 50–950 ramp

primary
#9F3ED9
secondary
#B1DA99
accent
#EA3E7E
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F3ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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