#9F40CA#9F40CA

#9F40CA is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.211 H 313.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9F40CA
RGBrgb(159, 64, 202)
HSLhsl(281, 57%, 52%)
HSVhsv(281, 68%, 79%)
CMYKcmyk(21.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(46.05, 60.39, -54.60)
CIE-LCHlch(46.05, 81.41, 317.88°)
OKLaboklab(56.14% 0.1449 -0.1539)
OKLCHoklch(56.14% 0.211 313.3)
XYZxyz(26.7903, 15.3028, 57.4082)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40CA #6BCA40
analogous
#5A40CA #9F40CA #CA40B0
triadic
#9F40CA #CA9F40 #40CA9F
tetradic
#9F40CA #CA5A40 #6BCA40 #40B0CA
square
#9F40CA #CA5A40 #6BCA40 #40B0CA
split-complementary
#9F40CA #B0CA40 #40CA5A
monochromatic
#571F70 #7C2CA0 #9F40CA #B770D7 #CFA0E5

Accessibility & contrast

On white

5.17
#9F40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9F40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40CA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40CA#FFFFFF#000000##FFFFFF
##9F40CA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#366FC7
Tritanopia (blue-blind)
#9B5C80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f40ca;
/* rgb */ color: rgb(159, 64, 202);
/* oklch */ color: oklch(56.1% 0.211 313.3);
Tailwind
colors: {
  custom: {
    50: '#bf7cdb',
    500: '#9f40ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f40ca;
$custom-light: #bf7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40ca",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 281.304,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56138,
    "c": 0.21137,
    "h": 313.3
  },
  "luminance": 0.15302
}

Semantic roles & 50–950 ramp

primary
#9F40CA
secondary
#A8D195
accent
#E04877
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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