#9F3CD7#9F3CD7

#9F3CD7 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.6% C 0.228 H 310.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9F3CD7
RGBrgb(159, 60, 215)
HSLhsl(278, 66%, 54%)
HSVhsv(278, 72%, 84%)
CMYKcmyk(26%, 72.1%, 0%, 15.7%)
CIE-LABlab(46.32, 64.75, -61.62)
CIE-LCHlch(46.32, 89.39, 316.42°)
OKLaboklab(56.61% 0.1474 -0.1745)
OKLCHoklch(56.61% 0.228 310.2)
XYZxyz(28.1773, 15.5096, 65.7861)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3CD7 #74D73C
analogous
#523CD7 #9F3CD7 #D73CC1
triadic
#9F3CD7 #D79F3C #3CD79F
tetradic
#9F3CD7 #D7523C #74D73C #3CC1D7
square
#9F3CD7 #D7523C #74D73C #3CC1D7
split-complementary
#9F3CD7 #C1D73C #3CD752
monochromatic
#5A1A7F #7E24B1 #9F3CD7 #B86FE1 #D1A2EC

Accessibility & contrast

On white

5.12
#9F3CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9F3CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3CD7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3CD7#FFFFFF#000000##FFFFFF
##9F3CD71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#1C6FD4
Tritanopia (blue-blind)
#975F86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f3cd7;
/* rgb */ color: rgb(159, 60, 215);
/* oklch */ color: oklch(56.6% 0.228 310.2);
Tailwind
colors: {
  custom: {
    50: '#c07be4',
    500: '#9f3cd7',
    950: '#000000',
  },
}
SCSS
$custom: #9f3cd7;
$custom-light: #c07be4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3cd7",
  "rgb": {
    "r": 159,
    "g": 60,
    "b": 215
  },
  "hsl": {
    "h": 278.323,
    "s": 65.957,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5661,
    "c": 0.22842,
    "h": 310.2
  },
  "luminance": 0.15509
}

Semantic roles & 50–950 ramp

primary
#9F3CD7
secondary
#AED896
accent
#E93F7C
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9F3CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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