#9F5FE5#9F5FE5

#9F5FE5 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.8% C 0.198 H 303.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9F5FE5
RGBrgb(159, 95, 229)
HSLhsl(269, 72%, 64%)
HSVhsv(269, 59%, 90%)
CMYKcmyk(30.6%, 58.5%, 0%, 10.2%)
CIE-LABlab(53.18, 51.55, -58.52)
CIE-LCHlch(53.18, 77.98, 311.38°)
OKLaboklab(61.84% 0.1079 -0.1655)
OKLCHoklch(61.84% 0.198 303.1)
XYZxyz(32.5299, 21.2125, 76.4942)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5FE5 #A5E55F
analogous
#5F62E5 #9F5FE5 #E25FE5
triadic
#9F5FE5 #E59F5F #5FE59F
tetradic
#9F5FE5 #E55F62 #A5E55F #5FE5E2
square
#9F5FE5 #E55F62 #A5E55F #5FE5E2
split-complementary
#9F5FE5 #E5E25F #62E55F
monochromatic
#621CAD #7F2ADC #9F5FE5 #BF94EE #DEC8F6

Accessibility & contrast

On white

4.01
#9F5FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9F5FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5FE5
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5FE5#FFFFFF#000000##000000
##9F5FE51.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E7EE9
Deuteranopia (green-blind)
#3D7FE2
Tritanopia (blue-blind)
#927A99
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5fe5;
/* rgb */ color: rgb(159, 95, 229);
/* oklch */ color: oklch(61.8% 0.198 303.1);
Tailwind
colors: {
  custom: {
    50: '#bf8fee',
    500: '#9f5fe5',
    950: '#000000',
  },
}
SCSS
$custom: #9f5fe5;
$custom-light: #bf8fee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5fe5",
  "rgb": {
    "r": 159,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 268.657,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61837,
    "c": 0.1976,
    "h": 303.1
  },
  "luminance": 0.21212
}

Semantic roles & 50–950 ramp

primary
#9F5FE5
secondary
#D1E8B8
accent
#D41177
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D16
muted
#827D84

Preview Lab

Preview with #9F5FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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