#9F5BEE#9F5BEE

#9F5BEE is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.9% C 0.213 H 301.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9F5BEE
RGBrgb(159, 91, 238)
HSLhsl(268, 81%, 65%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(33.2%, 61.8%, 0%, 6.7%)
CIE-LABlab(52.98, 55.76, -63.89)
CIE-LCHlch(52.98, 84.80, 311.11°)
OKLaboklab(61.87% 0.1122 -0.1813)
OKLCHoklch(61.87% 0.213 301.8)
XYZxyz(33.4681, 21.0260, 83.1676)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BEE #AAEE5B
analogous
#5B61EE #9F5BEE #E85BEE
triadic
#9F5BEE #EE9F5B #5BEE9F
tetradic
#9F5BEE #EE5B61 #AAEE5B #5BEEE8
square
#9F5BEE #EE5B61 #AAEE5B #5BEEE8
split-complementary
#9F5BEE #EEE85B #61EE5B
monochromatic
#6113BB #7F24E8 #9F5BEE #BF92F4 #E0CAF9

Accessibility & contrast

On white

4.03
#9F5BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#9F5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BEE
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BEE#FFFFFF#000000##000000
##9F5BEE1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#297EEB
Tritanopia (blue-blind)
#8F7B9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5bee;
/* rgb */ color: rgb(159, 91, 238);
/* oklch */ color: oklch(61.9% 0.213 301.8);
Tailwind
colors: {
  custom: {
    50: '#c08df4',
    500: '#9f5bee',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bee;
$custom-light: #c08df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bee",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 267.755,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61868,
    "c": 0.21326,
    "h": 301.8
  },
  "luminance": 0.21026
}

Semantic roles & 50–950 ramp

primary
#9F5BEE
secondary
#D4ECB9
accent
#DE087B
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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