#9F40CF#9F40CF

#9F40CF is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.5% C 0.216 H 311.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9F40CF
RGBrgb(159, 64, 207)
HSLhsl(280, 60%, 53%)
HSVhsv(280, 69%, 81%)
CMYKcmyk(23.2%, 69.1%, 0%, 18.8%)
CIE-LABlab(46.37, 61.43, -56.96)
CIE-LCHlch(46.37, 83.77, 317.16°)
OKLaboklab(56.47% 0.1444 -0.1608)
OKLCHoklch(56.47% 0.216 311.9)
XYZxyz(27.3919, 15.5434, 60.5766)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40CF #70CF40
analogous
#5740CF #9F40CF #CF40B8
triadic
#9F40CF #CF9F40 #40CF9F
tetradic
#9F40CF #CF5740 #70CF40 #40B8CF
square
#9F40CF #CF5740 #70CF40 #40B8CF
split-complementary
#9F40CF #B8CF40 #40CF57
monochromatic
#591E77 #7E2AA8 #9F40CF #B871DB #D0A2E8

Accessibility & contrast

On white

5.11
#9F40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9F40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40CF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40CF#FFFFFF#000000##FFFFFF
##9F40CF1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#3070CC
Tritanopia (blue-blind)
#995E83
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f40cf;
/* rgb */ color: rgb(159, 64, 207);
/* oklch */ color: oklch(56.5% 0.216 311.9);
Tailwind
colors: {
  custom: {
    50: '#c07cde',
    500: '#9f40cf',
    950: '#000000',
  },
}
SCSS
$custom: #9f40cf;
$custom-light: #c07cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40cf",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 279.86,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56472,
    "c": 0.21616,
    "h": 311.9
  },
  "luminance": 0.15543
}

Semantic roles & 50–950 ramp

primary
#9F40CF
secondary
#ABD497
accent
#E3457A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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