#9F4DCC#9F4DCC

#9F4DCC is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.8% C 0.196 H 311.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9F4DCC
RGBrgb(159, 77, 204)
HSLhsl(279, 55%, 55%)
HSVhsv(279, 62%, 80%)
CMYKcmyk(22.1%, 62.3%, 0%, 20%)
CIE-LABlab(48.31, 54.90, -52.12)
CIE-LCHlch(48.31, 75.70, 316.49°)
OKLaboklab(57.81% 0.13 -0.1467)
OKLCHoklch(57.81% 0.196 311.6)
XYZxyz(27.8490, 17.0390, 58.9368)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4DCC #7ACC4D
analogous
#5F4DCC #9F4DCC #CC4DBA
triadic
#9F4DCC #CC9F4D #4DCC9F
tetradic
#9F4DCC #CC5F4D #7ACC4D #4DBACC
square
#9F4DCC #CC5F4D #7ACC4D #4DBACC
split-complementary
#9F4DCC #BACC4D #4DCC5F
monochromatic
#5C237B #8031AB #9F4DCC #B97DDA #D2ACE7

Accessibility & contrast

On white

4.76
#9F4DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#9F4DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4DCC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4DCC#FFFFFF#000000##FFFFFF
##9F4DCC1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD0
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#9A6585
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f4dcc;
/* rgb */ color: rgb(159, 77, 204);
/* oklch */ color: oklch(57.8% 0.196 311.6);
Tailwind
colors: {
  custom: {
    50: '#bf83dc',
    500: '#9f4dcc',
    950: '#000000',
  },
}
SCSS
$custom: #9f4dcc;
$custom-light: #bf83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4dcc",
  "rgb": {
    "r": 159,
    "g": 77,
    "b": 204
  },
  "hsl": {
    "h": 278.74,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57807,
    "c": 0.19604,
    "h": 311.6
  },
  "luminance": 0.17038
}

Semantic roles & 50–950 ramp

primary
#9F4DCC
secondary
#B3D5A0
accent
#DF497E
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9F4DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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