#9F40FF#9F40FF

#9F40FF is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 60.0% C 0.262 H 301.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9F40FF
RGBrgb(159, 64, 255)
HSLhsl(270, 100%, 63%)
HSVhsv(270, 75%, 100%)
CMYKcmyk(37.6%, 74.9%, 0%, 0%)
CIE-LABlab(49.81, 71.90, -78.53)
CIE-LCHlch(49.81, 106.47, 312.48°)
OKLaboklab(59.98% 0.1361 -0.2242)
OKLCHoklch(59.98% 0.262 301.3)
XYZxyz(34.1771, 18.2575, 96.3118)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40FF #A0FF40
analogous
#4040FF #9F40FF #FF40FF
triadic
#9F40FF #FF9F40 #40FF9F
tetradic
#9F40FF #FF4040 #A0FF40 #40FFFF
square
#9F40FF #FF4040 #A0FF40 #40FFFF
split-complementary
#9F40FF #FFFF40 #40FF40
monochromatic
#6200C5 #8003FF #9F40FF #BE7DFF #DDBAFF

Accessibility & contrast

On white

4.51
#9F40FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#9F40FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F40FF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40FF#FFFFFF#000000##000000
##9F40FF1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#0075FB
Tritanopia (blue-blind)
#8A729E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9f40ff;
/* rgb */ color: rgb(159, 64, 255);
/* oklch */ color: oklch(60.0% 0.262 301.3);
Tailwind
colors: {
  custom: {
    50: '#c37eff',
    500: '#9f40ff',
    950: '#000000',
  },
}
SCSS
$custom: #9f40ff;
$custom-light: #c37eff;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40ff",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 269.843,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59983,
    "c": 0.26228,
    "h": 301.3
  },
  "luminance": 0.18258
}

Semantic roles & 50–950 ramp

primary
#9F40FF
secondary
#CEF0AB
accent
#E60073
background
#FCF8FF
surface
#F9EFFF
border
#D2CAD7
text
#140B18
muted
#827C86

Preview Lab

Preview with #9F40FF

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

Preview Lab → · Contrast checker → · Palette generator →

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