#9F5EF5#9F5EF5

#9F5EF5 is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 62.7% C 0.217 H 300.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#9F5EF5
RGBrgb(159, 94, 245)
HSLhsl(266, 88%, 66%)
HSVhsv(266, 62%, 96%)
CMYKcmyk(35.1%, 61.6%, 0%, 3.9%)
CIE-LABlab(53.99, 55.93, -66.16)
CIE-LCHlch(53.99, 86.63, 310.21°)
OKLaboklab(62.75% 0.1085 -0.188)
OKLCHoklch(62.75% 0.217 300)
XYZxyz(34.7782, 21.9686, 88.7766)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5EF5 #B4F55E
analogous
#5E69F5 #9F5EF5 #EB5EF5
triadic
#9F5EF5 #F59F5E #5EF59F
tetradic
#9F5EF5 #F55E69 #B4F55E #5EF5EB
square
#9F5EF5 #F55E69 #B4F55E #5EF5EB
split-complementary
#9F5EF5 #F5EB5E #69F55E
monochromatic
#5F0DCC #7D24F1 #9F5EF5 #C198F9 #E4D1FC

Accessibility & contrast

On white

3.89
#9F5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#9F5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5EF5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5EF5#FFFFFF#000000##000000
##9F5EF51.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FA
Deuteranopia (green-blind)
#2180F2
Tritanopia (blue-blind)
#8C7FA1
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9f5ef5;
/* rgb */ color: rgb(159, 94, 245);
/* oklch */ color: oklch(62.7% 0.217 300.0);
Tailwind
colors: {
  custom: {
    50: '#c18ff9',
    500: '#9f5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ef5;
$custom-light: #c18ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ef5",
  "rgb": {
    "r": 159,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 265.828,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62749,
    "c": 0.21705,
    "h": 300
  },
  "luminance": 0.21969
}

Semantic roles & 50–950 ramp

primary
#9F5EF5
secondary
#DBF0BF
accent
#E50183
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130D17
muted
#827D85

Preview Lab

Preview with #9F5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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