#9F5BEC#9F5BEC

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

Color values

HEX#9F5BEC
RGBrgb(159, 91, 236)
HSLhsl(268, 79%, 64%)
HSVhsv(268, 61%, 93%)
CMYKcmyk(32.6%, 61.4%, 0%, 7.5%)
CIE-LABlab(52.85, 55.28, -62.98)
CIE-LCHlch(52.85, 83.80, 311.27°)
OKLaboklab(61.73% 0.1124 -0.1786)
OKLCHoklch(61.73% 0.211 302.2)
XYZxyz(33.1759, 20.9092, 81.6287)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5BEC #A8EC5B
analogous
#5B60EC #9F5BEC #E85BEC
triadic
#9F5BEC #EC9F5B #5BEC9F
tetradic
#9F5BEC #EC5B60 #A8EC5B #5BECE8
square
#9F5BEC #EC5B60 #A8EC5B #5BECE8
split-complementary
#9F5BEC #ECE85B #60EC5B
monochromatic
#6115B7 #7F24E6 #9F5BEC #BF92F2 #DFC9F9

Accessibility & contrast

On white

4.05
#9F5BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#9F5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5BEC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5BEC#FFFFFF#000000##000000
##9F5BEC1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#2D7EE9
Tritanopia (blue-blind)
#907A9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5bec;
/* rgb */ color: rgb(159, 91, 236);
/* oklch */ color: oklch(61.7% 0.211 302.2);
Tailwind
colors: {
  custom: {
    50: '#c08df3',
    500: '#9f5bec',
    950: '#000000',
  },
}
SCSS
$custom: #9f5bec;
$custom-light: #c08df3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5bec",
  "rgb": {
    "r": 159,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 268.138,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61735,
    "c": 0.21104,
    "h": 302.2
  },
  "luminance": 0.20909
}

Semantic roles & 50–950 ramp

primary
#9F5BEC
secondary
#D3EBB8
accent
#DC0A79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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