#9F40E3#9F40E3

#9F40E3 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.9% C 0.235 H 307.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9F40E3
RGBrgb(159, 64, 227)
HSLhsl(275, 74%, 57%)
HSVhsv(275, 72%, 89%)
CMYKcmyk(30%, 71.8%, 0%, 11%)
CIE-LABlab(47.73, 65.70, -66.18)
CIE-LCHlch(47.73, 93.26, 314.79°)
OKLaboklab(57.87% 0.1417 -0.1879)
OKLCHoklch(57.87% 0.235 307)
XYZxyz(29.9936, 16.5841, 74.2791)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40E3 #84E340
analogous
#4E40E3 #9F40E3 #E340D6
triadic
#9F40E3 #E39F40 #40E39F
tetradic
#9F40E3 #E34E40 #84E340 #40D6E3
square
#9F40E3 #E34E40 #84E340 #40D6E3
split-complementary
#9F40E3 #D6E340 #40E34E
monochromatic
#5F1693 #811DC8 #9F40E3 #BA75EB #D5ABF3

Accessibility & contrast

On white

4.86
#9F40E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#9F40E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40E3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40E3#FFFFFF#000000##FFFFFF
##9F40E31.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#94668E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9f40e3;
/* rgb */ color: rgb(159, 64, 227);
/* oklch */ color: oklch(57.9% 0.235 307.0);
Tailwind
colors: {
  custom: {
    50: '#c17ded',
    500: '#9f40e3',
    950: '#000000',
  },
}
SCSS
$custom: #9f40e3;
$custom-light: #c17ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40e3",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 274.969,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57872,
    "c": 0.23538,
    "h": 307
  },
  "luminance": 0.16584
}

Semantic roles & 50–950 ramp

primary
#9F40E3
secondary
#BAE19E
accent
#F13784
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F40E3

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

Preview Lab → · Contrast checker → · Palette generator →

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