#9F4DEC#9F4DEC

#9F4DEC is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 60.0% C 0.229 H 303.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9F4DEC
RGBrgb(159, 77, 236)
HSLhsl(271, 81%, 61%)
HSVhsv(271, 67%, 93%)
CMYKcmyk(32.6%, 67.4%, 0%, 7.5%)
CIE-LABlab(50.38, 62.06, -66.98)
CIE-LCHlch(50.38, 91.31, 312.82°)
OKLaboklab(59.95% 0.1276 -0.1903)
OKLCHoklch(59.95% 0.229 303.8)
XYZxyz(32.0888, 18.7349, 81.2663)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4DEC #9AEC4D
analogous
#504DEC #9F4DEC #EC4DEA
triadic
#9F4DEC #EC9F4D #4DEC9F
tetradic
#9F4DEC #EC504D #9AEC4D #4DEAEC
square
#9F4DEC #EC504D #9AEC4D #4DEAEC
split-complementary
#9F4DEC #EAEC4D #4DEC50
monochromatic
#6212AC #8118E4 #9F4DEC #BD84F2 #DBBCF8

Accessibility & contrast

On white

4.42
#9F4DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#9F4DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F4DEC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4DEC#FFFFFF#000000##000000
##9F4DEC1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#0078E9
Tritanopia (blue-blind)
#907197
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9f4dec;
/* rgb */ color: rgb(159, 77, 236);
/* oklch */ color: oklch(60.0% 0.229 303.8);
Tailwind
colors: {
  custom: {
    50: '#c184f3',
    500: '#9f4dec',
    950: '#000000',
  },
}
SCSS
$custom: #9f4dec;
$custom-light: #c184f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4dec",
  "rgb": {
    "r": 159,
    "g": 77,
    "b": 236
  },
  "hsl": {
    "h": 270.943,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59952,
    "c": 0.22914,
    "h": 303.8
  },
  "luminance": 0.18735
}

Semantic roles & 50–950 ramp

primary
#9F4DEC
secondary
#C9E8AD
accent
#DD086F
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130B17
muted
#827C85

Preview Lab

Preview with #9F4DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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