#9F5BEB#9F5BEB

#9F5BEB is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.210 H 302.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9F5BEB
RGBrgb(159, 91, 235)
HSLhsl(268, 78%, 64%)
HSVhsv(268, 61%, 92%)
CMYKcmyk(32.3%, 61.3%, 0%, 7.8%)
CIE-LABlab(52.79, 55.04, -62.52)
CIE-LCHlch(52.79, 83.30, 311.36°)
OKLaboklab(61.67% 0.1124 -0.1773)
OKLCHoklch(61.67% 0.21 302.4)
XYZxyz(33.0311, 20.8512, 80.8657)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BEB #A7EB5B
analogous
#5B5FEB #9F5BEB #E75BEB
triadic
#9F5BEB #EB9F5B #5BEB9F
tetradic
#9F5BEB #EB5B5F #A7EB5B #5BEBE7
square
#9F5BEB #EB5B5F #A7EB5B #5BEBE7
split-complementary
#9F5BEB #EBE75B #5FEB5B
monochromatic
#6116B5 #7F24E4 #9F5BEB #BF92F2 #DFC8F8

Accessibility & contrast

On white

4.06
#9F5BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9F5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BEB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BEB#FFFFFF#000000##000000
##9F5BEB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#2F7DE8
Tritanopia (blue-blind)
#90799B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5beb;
/* rgb */ color: rgb(159, 91, 235);
/* oklch */ color: oklch(61.7% 0.210 302.4);
Tailwind
colors: {
  custom: {
    50: '#c08df2',
    500: '#9f5beb',
    950: '#000000',
  },
}
SCSS
$custom: #9f5beb;
$custom-light: #c08df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5beb",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 268.333,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61668,
    "c": 0.20993,
    "h": 302.4
  },
  "luminance": 0.20851
}

Semantic roles & 50–950 ramp

primary
#9F5BEB
secondary
#D2EAB8
accent
#DB0B79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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