#9F5BE8#9F5BE8

#9F5BE8 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.5% C 0.207 H 303.0°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9F5BE8
RGBrgb(159, 91, 232)
HSLhsl(269, 75%, 63%)
HSVhsv(269, 61%, 91%)
CMYKcmyk(31.5%, 60.8%, 0%, 9%)
CIE-LABlab(52.60, 54.33, -61.14)
CIE-LCHlch(52.60, 81.79, 311.62°)
OKLaboklab(61.47% 0.1125 -0.1732)
OKLCHoklch(61.47% 0.207 303)
XYZxyz(32.6013, 20.6793, 78.6023)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BE8 #A4E85B
analogous
#5B5DE8 #9F5BE8 #E55BE8
triadic
#9F5BE8 #E89F5B #5BE89F
tetradic
#9F5BE8 #E85B5D #A4E85B #5BE8E5
square
#9F5BE8 #E85B5D #A4E85B #5BE8E5
split-complementary
#9F5BE8 #E8E55B #5DE85B
monochromatic
#6219B0 #8025E0 #9F5BE8 #BE91F0 #DEC6F7

Accessibility & contrast

On white

4.09
#9F5BE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9F5BE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BE8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BE8#FFFFFF#000000##000000
##9F5BE81.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEC
Deuteranopia (green-blind)
#337DE5
Tritanopia (blue-blind)
#917899
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5be8;
/* rgb */ color: rgb(159, 91, 232);
/* oklch */ color: oklch(61.5% 0.207 303.0);
Tailwind
colors: {
  custom: {
    50: '#c08df0',
    500: '#9f5be8',
    950: '#000000',
  },
}
SCSS
$custom: #9f5be8;
$custom-light: #c08df0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5be8",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 232
  },
  "hsl": {
    "h": 268.936,
    "s": 75.401,
    "l": 63.333
  },
  "oklch": {
    "l": 0.6147,
    "c": 0.20659,
    "h": 303
  },
  "luminance": 0.20679
}

Semantic roles & 50–950 ramp

primary
#9F5BE8
secondary
#D0E9B6
accent
#D80E76
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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