#9F40B2#9F40B2

#9F40B2 is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.6% C 0.189 H 320.6°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9F40B2
RGBrgb(159, 64, 178)
HSLhsl(290, 47%, 47%)
HSVhsv(290, 64%, 70%)
CMYKcmyk(10.7%, 64%, 0%, 30.2%)
CIE-LABlab(44.59, 55.58, -42.93)
CIE-LCHlch(44.59, 70.23, 322.32°)
OKLaboklab(54.63% 0.1458 -0.1198)
OKLCHoklch(54.63% 0.189 320.6)
XYZxyz(24.1664, 14.2532, 43.5891)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40B2 #53B240
analogous
#6640B2 #9F40B2 #B2408C
triadic
#9F40B2 #B29F40 #40B29F
tetradic
#9F40B2 #B26640 #53B240 #408CB2
square
#9F40B2 #B26640 #53B240 #408CB2
split-complementary
#9F40B2 #8CB240 #40B266
monochromatic
#4F2058 #773085 #9F40B2 #B867C8 #CD94D8

Accessibility & contrast

On white

5.45
#9F40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9F40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40B2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40B2#FFFFFF#000000##FFFFFF
##9F40B21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B5
Deuteranopia (green-blind)
#4B6DAF
Tritanopia (blue-blind)
#A05373
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9f40b2;
/* rgb */ color: rgb(159, 64, 178);
/* oklch */ color: oklch(54.6% 0.189 320.6);
Tailwind
colors: {
  custom: {
    50: '#be7bc9',
    500: '#9f40b2',
    950: '#000000',
  },
}
SCSS
$custom: #9f40b2;
$custom-light: #be7bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40b2",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 290,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54627,
    "c": 0.1887,
    "h": 320.6
  },
  "luminance": 0.14252
}

Semantic roles & 50–950 ramp

primary
#9F40B2
secondary
#94C48A
accent
#D75167
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9F40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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