#9F5BED#9F5BED

#9F5BED is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.8% C 0.212 H 302.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9F5BED
RGBrgb(159, 91, 237)
HSLhsl(268, 80%, 64%)
HSVhsv(268, 62%, 93%)
CMYKcmyk(32.9%, 61.6%, 0%, 7.1%)
CIE-LABlab(52.91, 55.52, -63.44)
CIE-LCHlch(52.91, 84.30, 311.19°)
OKLaboklab(61.8% 0.1123 -0.18)
OKLCHoklch(61.8% 0.212 302)
XYZxyz(33.3216, 20.9674, 82.3960)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BED #A9ED5B
analogous
#5B60ED #9F5BED #E85BED
triadic
#9F5BED #ED9F5B #5BED9F
tetradic
#9F5BED #ED5B60 #A9ED5B #5BEDE8
square
#9F5BED #ED5B60 #A9ED5B #5BEDE8
split-complementary
#9F5BED #EDE85B #60ED5B
monochromatic
#6114B9 #7F24E7 #9F5BED #BF92F3 #E0C9F9

Accessibility & contrast

On white

4.04
#9F5BED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#9F5BED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BED
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BED#FFFFFF#000000##000000
##9F5BED1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF2
Deuteranopia (green-blind)
#2B7EEA
Tritanopia (blue-blind)
#8F7A9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5bed;
/* rgb */ color: rgb(159, 91, 237);
/* oklch */ color: oklch(61.8% 0.212 302.0);
Tailwind
colors: {
  custom: {
    50: '#c08df4',
    500: '#9f5bed',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bed;
$custom-light: #c08df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bed",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 237
  },
  "hsl": {
    "h": 267.945,
    "s": 80.22,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61801,
    "c": 0.21215,
    "h": 302
  },
  "luminance": 0.20968
}

Semantic roles & 50–950 ramp

primary
#9F5BED
secondary
#D4EBB9
accent
#DD097A
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5BED

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

Preview Lab → · Contrast checker → · Palette generator →

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