#9F5CE9#9F5CE9

#9F5CE9 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.206 H 302.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9F5CE9
RGBrgb(159, 92, 233)
HSLhsl(269, 76%, 64%)
HSVhsv(269, 61%, 91%)
CMYKcmyk(31.8%, 60.5%, 0%, 8.6%)
CIE-LABlab(52.85, 54.05, -61.30)
CIE-LCHlch(52.85, 81.73, 311.41°)
OKLaboklab(61.67% 0.1113 -0.1737)
OKLCHoklch(61.67% 0.206 302.7)
XYZxyz(32.8298, 20.9084, 79.3811)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CE9 #A6E95C
analogous
#5C5FE9 #9F5CE9 #E65CE9
triadic
#9F5CE9 #E99F5C #5CE99F
tetradic
#9F5CE9 #E95C5F #A6E95C #5CE9E6
square
#9F5CE9 #E95C5F #A6E95C #5CE9E6
split-complementary
#9F5CE9 #E9E65C #5FE95C
monochromatic
#6118B3 #7F26E2 #9F5CE9 #BF92F0 #DFC8F8

Accessibility & contrast

On white

4.05
#9F5CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#9F5CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CE9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CE9#FFFFFF#000000##000000
##9F5CE91.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DED
Deuteranopia (green-blind)
#337EE6
Tritanopia (blue-blind)
#91799A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5ce9;
/* rgb */ color: rgb(159, 92, 233);
/* oklch */ color: oklch(61.7% 0.206 302.7);
Tailwind
colors: {
  custom: {
    50: '#c08df1',
    500: '#9f5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ce9;
$custom-light: #c08df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ce9",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 268.511,
    "s": 76.216,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61674,
    "c": 0.20632,
    "h": 302.7
  },
  "luminance": 0.20908
}

Semantic roles & 50–950 ramp

primary
#9F5CE9
secondary
#D2E9B8
accent
#D80D78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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