#9F5FEB#9F5FEB

#9F5FEB is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.2% C 0.204 H 301.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9F5FEB
RGBrgb(159, 95, 235)
HSLhsl(267, 78%, 65%)
HSVhsv(267, 60%, 92%)
CMYKcmyk(32.3%, 59.6%, 0%, 7.8%)
CIE-LABlab(53.55, 52.99, -61.29)
CIE-LCHlch(53.55, 81.02, 310.84°)
OKLaboklab(62.22% 0.1078 -0.1737)
OKLCHoklch(62.22% 0.204 301.8)
XYZxyz(33.3822, 21.5534, 80.9827)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5FEB #ABEB5F
analogous
#5F65EB #9F5FEB #E55FEB
triadic
#9F5FEB #EB9F5F #5FEB9F
tetradic
#9F5FEB #EB5F65 #ABEB5F #5FEBE5
square
#9F5FEB #EB5F65 #ABEB5F #5FEBE5
split-complementary
#9F5FEB #EBE55F #65EB5F
monochromatic
#6117B9 #7E29E4 #9F5FEB #C095F2 #E0CCF9

Accessibility & contrast

On white

3.95
#9F5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#9F5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5FEB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5FEB#FFFFFF#000000##000000
##9F5FEB1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A7FEF
Deuteranopia (green-blind)
#367FE8
Tritanopia (blue-blind)
#907C9C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9f5feb;
/* rgb */ color: rgb(159, 95, 235);
/* oklch */ color: oklch(62.2% 0.204 301.8);
Tailwind
colors: {
  custom: {
    50: '#c08ff2',
    500: '#9f5feb',
    950: '#000000',
  },
}
SCSS
$custom: #9f5feb;
$custom-light: #c08ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5feb",
  "rgb": {
    "r": 159,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 267.429,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62224,
    "c": 0.20441,
    "h": 301.8
  },
  "luminance": 0.21554
}

Semantic roles & 50–950 ramp

primary
#9F5FEB
secondary
#D5EBBB
accent
#DA0B7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85

Preview Lab

Preview with #9F5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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