#9F4DEA#9F4DEA

#9F4DEA is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.8% C 0.227 H 304.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9F4DEA
RGBrgb(159, 77, 234)
HSLhsl(271, 79%, 61%)
HSVhsv(271, 67%, 92%)
CMYKcmyk(32.1%, 67.1%, 0%, 8.2%)
CIE-LABlab(50.24, 61.60, -66.07)
CIE-LCHlch(50.24, 90.33, 312.99°)
OKLaboklab(59.81% 0.1278 -0.1877)
OKLCHoklch(59.81% 0.227 304.3)
XYZxyz(31.7999, 18.6193, 79.7445)
Luminance0.1862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4DEA #98EA4D
analogous
#504DEA #9F4DEA #EA4DE6
triadic
#9F4DEA #EA9F4D #4DEA9F
tetradic
#9F4DEA #EA504D #98EA4D #4DE6EA
square
#9F4DEA #EA504D #98EA4D #4DE6EA
split-complementary
#9F4DEA #E6EA4D #4DEA50
monochromatic
#6214A9 #811ADF #9F4DEA #BD84F0 #DABAF7

Accessibility & contrast

On white

4.45
#9F4DEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#9F4DEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F4DEA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4DEA#FFFFFF#000000##000000
##9F4DEA1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#0C77E7
Tritanopia (blue-blind)
#917096
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9f4dea;
/* rgb */ color: rgb(159, 77, 234);
/* oklch */ color: oklch(59.8% 0.227 304.3);
Tailwind
colors: {
  custom: {
    50: '#c184f2',
    500: '#9f4dea',
    950: '#000000',
  },
}
SCSS
$custom: #9f4dea;
$custom-light: #c184f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4dea",
  "rgb": {
    "r": 159,
    "g": 77,
    "b": 234
  },
  "hsl": {
    "h": 271.338,
    "s": 78.894,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59811,
    "c": 0.22708,
    "h": 304.3
  },
  "luminance": 0.18619
}

Semantic roles & 50–950 ramp

primary
#9F4DEA
secondary
#C8E7AC
accent
#DB0A6E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9F4DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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