#9F5BF1#9F5BF1

#9F5BF1 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.1% C 0.217 H 301.2°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9F5BF1
RGBrgb(159, 91, 241)
HSLhsl(267, 84%, 65%)
HSVhsv(267, 62%, 95%)
CMYKcmyk(34%, 62.2%, 0%, 5.5%)
CIE-LABlab(53.17, 56.48, -65.26)
CIE-LCHlch(53.17, 86.30, 310.87°)
OKLaboklab(62.07% 0.1121 -0.1853)
OKLCHoklch(62.07% 0.217 301.2)
XYZxyz(33.9126, 21.2038, 85.5081)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BF1 #ADF15B
analogous
#5B62F1 #9F5BF1 #EA5BF1
triadic
#9F5BF1 #F19F5B #5BF19F
tetradic
#9F5BF1 #F15B62 #ADF15B #5BF1EA
square
#9F5BF1 #F15B62 #ADF15B #5BF1EA
split-complementary
#9F5BF1 #F1EA5B #62F15B
monochromatic
#6110C1 #7E23EC #9F5BF1 #C093F6 #E1CCFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F5BF1#FFFFFF#000000##000000
##9F5BF11.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)
#007EF6
Deuteranopia (green-blind)
#237EEE
Tritanopia (blue-blind)
#8E7C9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5bf1;
/* rgb */ color: rgb(159, 91, 241);
/* oklch */ color: oklch(62.1% 0.217 301.2);
Tailwind
colors: {
  custom: {
    50: '#c08df6',
    500: '#9f5bf1',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bf1;
$custom-light: #c08df6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bf1",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 241
  },
  "hsl": {
    "h": 267.2,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62071,
    "c": 0.21659,
    "h": 301.2
  },
  "luminance": 0.21204
}

Semantic roles & 50–950 ramp

primary
#9F5BF1
secondary
#D6EDBA
accent
#E1057D
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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