#9F5CDC#9F5CDC

#9F5CDC is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.8% C 0.192 H 305.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9F5CDC
RGBrgb(159, 92, 220)
HSLhsl(271, 65%, 61%)
HSVhsv(271, 58%, 86%)
CMYKcmyk(27.7%, 58.2%, 0%, 13.7%)
CIE-LABlab(52.05, 50.99, -55.24)
CIE-LCHlch(52.05, 75.18, 312.70°)
OKLaboklab(60.84% 0.1116 -0.1559)
OKLCHoklch(60.84% 0.192 305.6)
XYZxyz(31.0407, 20.1928, 69.9586)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CDC #99DC5C
analogous
#5F5CDC #9F5CDC #DC5CD9
triadic
#9F5CDC #DC9F5C #5CDC9F
tetradic
#9F5CDC #DC5F5C #99DC5C #5CD9DC
square
#9F5CDC #DC5F5C #99DC5C #5CD9DC
split-complementary
#9F5CDC #D9DC5C #5CDC5F
monochromatic
#62229C #812CCE #9F5CDC #BD8EE7 #DAC1F2

Accessibility & contrast

On white

4.17
#9F5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9F5CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CDC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CDC#FFFFFF#000000##000000
##9F5CDC1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#257AE0
Deuteranopia (green-blind)
#437CD9
Tritanopia (blue-blind)
#957593
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9f5cdc;
/* rgb */ color: rgb(159, 92, 220);
/* oklch */ color: oklch(60.8% 0.192 305.6);
Tailwind
colors: {
  custom: {
    50: '#bf8de7',
    500: '#9f5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #9f5cdc;
$custom-light: #bf8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5cdc",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 271.406,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.6084,
    "c": 0.19175,
    "h": 305.6
  },
  "luminance": 0.20193
}

Semantic roles & 50–950 ramp

primary
#9F5CDC
secondary
#C9E2B2
accent
#CC196F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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