#9F4DCD#9F4DCD

#9F4DCD is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.9% C 0.197 H 311.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9F4DCD
RGBrgb(159, 77, 205)
HSLhsl(278, 56%, 55%)
HSVhsv(278, 62%, 80%)
CMYKcmyk(22.4%, 62.4%, 0%, 19.6%)
CIE-LABlab(48.37, 55.12, -52.59)
CIE-LCHlch(48.37, 76.18, 316.34°)
OKLaboklab(57.87% 0.13 -0.1481)
OKLCHoklch(57.87% 0.197 311.3)
XYZxyz(27.9694, 17.0871, 59.5705)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4DCD #7BCD4D
analogous
#5F4DCD #9F4DCD #CD4DBB
triadic
#9F4DCD #CD9F4D #4DCD9F
tetradic
#9F4DCD #CD5F4D #7BCD4D #4DBBCD
square
#9F4DCD #CD5F4D #7BCD4D #4DBBCD
split-complementary
#9F4DCD #BBCD4D #4DCD5F
monochromatic
#5C237D #8030AC #9F4DCD #B97DDA #D3ADE8

Accessibility & contrast

On white

4.75
#9F4DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9F4DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4DCD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4DCD#FFFFFF#000000##FFFFFF
##9F4DCD1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126FD1
Deuteranopia (green-blind)
#4074CA
Tritanopia (blue-blind)
#996686
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9f4dcd;
/* rgb */ color: rgb(159, 77, 205);
/* oklch */ color: oklch(57.9% 0.197 311.3);
Tailwind
colors: {
  custom: {
    50: '#bf83dd',
    500: '#9f4dcd',
    950: '#000000',
  },
}
SCSS
$custom: #9f4dcd;
$custom-light: #bf83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4dcd",
  "rgb": {
    "r": 159,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 278.438,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5787,
    "c": 0.19707,
    "h": 311.3
  },
  "luminance": 0.17086
}

Semantic roles & 50–950 ramp

primary
#9F4DCD
secondary
#B3D6A0
accent
#DF487F
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #9F4DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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