#9F5FDA#9F5FDA

#9F5FDA is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.1% C 0.185 H 305.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9F5FDA
RGBrgb(159, 95, 218)
HSLhsl(271, 62%, 61%)
HSVhsv(271, 56%, 85%)
CMYKcmyk(27.1%, 56.4%, 0%, 14.5%)
CIE-LABlab(52.53, 48.95, -53.35)
CIE-LCHlch(52.53, 72.41, 312.54°)
OKLaboklab(61.15% 0.1078 -0.1504)
OKLCHoklch(61.15% 0.185 305.6)
XYZxyz(31.0425, 20.6175, 68.6603)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5FDA #9ADA5F
analogous
#625FDA #9F5FDA #DA5FD7
triadic
#9F5FDA #DA9F5F #5FDA9F
tetradic
#9F5FDA #DA625F #9ADA5F #5FD7DA
square
#9F5FDA #DA625F #9ADA5F #5FD7DA
split-complementary
#9F5FDA #D7DA5F #5FDA62
monochromatic
#62249B #812FCD #9F5FDA #BD91E5 #DBC2F1

Accessibility & contrast

On white

4.10
#9F5FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9F5FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5FDA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5FDA#FFFFFF#000000##000000
##9F5FDA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#307BDE
Deuteranopia (green-blind)
#497ED7
Tritanopia (blue-blind)
#957793
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5fda;
/* rgb */ color: rgb(159, 95, 218);
/* oklch */ color: oklch(61.1% 0.185 305.6);
Tailwind
colors: {
  custom: {
    50: '#bf8fe6',
    500: '#9f5fda',
    950: '#000000',
  },
}
SCSS
$custom: #9f5fda;
$custom-light: #bf8fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5fda",
  "rgb": {
    "r": 159,
    "g": 95,
    "b": 218
  },
  "hsl": {
    "h": 271.22,
    "s": 62.437,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61149,
    "c": 0.18506,
    "h": 305.6
  },
  "luminance": 0.20617
}

Semantic roles & 50–950 ramp

primary
#9F5FDA
secondary
#C9E1B3
accent
#CA1B6F
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120D16
muted
#817D84

Preview Lab

Preview with #9F5FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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