#9F5FCA#9F5FCA

#9F5FCA is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.2% C 0.167 H 309.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9F5FCA
RGBrgb(159, 95, 202)
HSLhsl(276, 50%, 58%)
HSVhsv(276, 53%, 79%)
CMYKcmyk(21.3%, 53%, 0%, 20.8%)
CIE-LABlab(51.63, 45.27, -45.67)
CIE-LCHlch(51.63, 64.31, 314.75°)
OKLaboklab(60.2% 0.107 -0.1279)
OKLCHoklch(60.2% 0.167 309.9)
XYZxyz(29.0489, 19.8201, 58.1610)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5FCA #8ACA5F
analogous
#695FCA #9F5FCA #CA5FBF
triadic
#9F5FCA #CA9F5F #5FCA9F
tetradic
#9F5FCA #CA695F #8ACA5F #5FBFCA
square
#9F5FCA #CA695F #8ACA5F #5FBFCA
split-complementary
#9F5FCA #BFCA5F #5FCA69
monochromatic
#602B83 #823BB1 #9F5FCA #BB8DD9 #D6BBE8

Accessibility & contrast

On white

4.23
#9F5FCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#9F5FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5FCA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5FCA#FFFFFF#000000##000000
##9F5FCA1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4178CE
Deuteranopia (green-blind)
#557CC7
Tritanopia (blue-blind)
#9A718C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9f5fca;
/* rgb */ color: rgb(159, 95, 202);
/* oklch */ color: oklch(60.2% 0.167 309.9);
Tailwind
colors: {
  custom: {
    50: '#be8fda',
    500: '#9f5fca',
    950: '#000000',
  },
}
SCSS
$custom: #9f5fca;
$custom-light: #be8fda;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5fca",
  "rgb": {
    "r": 159,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 275.888,
    "s": 50.235,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60201,
    "c": 0.16679,
    "h": 309.9
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#9F5FCA
secondary
#BED8AD
accent
#DA4E86
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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