#9F5AEC#9F5AEC

#9F5AEC is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.6% C 0.212 H 302.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9F5AEC
RGBrgb(159, 90, 236)
HSLhsl(268, 79%, 64%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(32.6%, 61.9%, 0%, 7.5%)
CIE-LABlab(52.66, 55.78, -63.28)
CIE-LCHlch(52.66, 84.36, 311.40°)
OKLaboklab(61.6% 0.1135 -0.1795)
OKLCHoklch(61.6% 0.212 302.3)
XYZxyz(33.0910, 20.7393, 81.6004)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5AEC #A7EC5A
analogous
#5A5EEC #9F5AEC #E85AEC
triadic
#9F5AEC #EC9F5A #5AEC9F
tetradic
#9F5AEC #EC5A5E #A7EC5A #5AECE8
square
#9F5AEC #EC5A5E #A7EC5A #5AECE8
split-complementary
#9F5AEC #ECE85A #5EEC5A
monochromatic
#6115B7 #7F23E6 #9F5AEC #BF91F2 #DFC8F9

Accessibility & contrast

On white

4.08
#9F5AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#9F5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5AEC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5AEC#FFFFFF#000000##000000
##9F5AEC1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#2B7DE9
Tritanopia (blue-blind)
#90799B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5aec;
/* rgb */ color: rgb(159, 90, 236);
/* oklch */ color: oklch(61.6% 0.212 302.3);
Tailwind
colors: {
  custom: {
    50: '#c08cf3',
    500: '#9f5aec',
    950: '#000000',
  },
}
SCSS
$custom: #9f5aec;
$custom-light: #c08cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5aec",
  "rgb": {
    "r": 159,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 268.356,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61599,
    "c": 0.21239,
    "h": 302.3
  },
  "luminance": 0.20739
}

Semantic roles & 50–950 ramp

primary
#9F5AEC
secondary
#D2EBB7
accent
#DC0A78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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