#9F3BD4#9F3BD4

#9F3BD4 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.3% C 0.227 H 311.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9F3BD4
RGBrgb(159, 59, 212)
HSLhsl(279, 64%, 53%)
HSVhsv(279, 72%, 83%)
CMYKcmyk(25%, 72.2%, 0%, 16.9%)
CIE-LABlab(45.98, 64.52, -60.46)
CIE-LCHlch(45.98, 88.42, 316.86°)
OKLaboklab(56.3% 0.1488 -0.1711)
OKLCHoklch(56.3% 0.227 311)
XYZxyz(27.7434, 15.2530, 63.7572)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3BD4 #70D43B
analogous
#523BD4 #9F3BD4 #D43BBC
triadic
#9F3BD4 #D49F3B #3BD49F
tetradic
#9F3BD4 #D4523B #70D43B #3BBCD4
square
#9F3BD4 #D4523B #70D43B #3BBCD4
split-complementary
#9F3BD4 #BCD43B #3BD452
monochromatic
#591B7A #7E26AC #9F3BD4 #B86DDF #D09FEA

Accessibility & contrast

On white

5.18
#9F3BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9F3BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3BD4
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3BD4#FFFFFF#000000##FFFFFF
##9F3BD41.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#216FD1
Tritanopia (blue-blind)
#985E84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f3bd4;
/* rgb */ color: rgb(159, 59, 212);
/* oklch */ color: oklch(56.3% 0.227 311.0);
Tailwind
colors: {
  custom: {
    50: '#c07ae2',
    500: '#9f3bd4',
    950: '#000000',
  },
}
SCSS
$custom: #9f3bd4;
$custom-light: #c07ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3bd4",
  "rgb": {
    "r": 159,
    "g": 59,
    "b": 212
  },
  "hsl": {
    "h": 279.216,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.563,
    "c": 0.22674,
    "h": 311
  },
  "luminance": 0.15252
}

Semantic roles & 50–950 ramp

primary
#9F3BD4
secondary
#ABD694
accent
#E7417A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F3BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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