#9F5CEB#9F5CEB

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

Color values

HEX#9F5CEB
RGBrgb(159, 92, 235)
HSLhsl(268, 78%, 64%)
HSVhsv(268, 61%, 92%)
CMYKcmyk(32.3%, 60.9%, 0%, 7.8%)
CIE-LABlab(52.98, 54.53, -62.22)
CIE-LCHlch(52.98, 82.73, 311.23°)
OKLaboklab(61.81% 0.1113 -0.1764)
OKLCHoklch(61.81% 0.209 302.2)
XYZxyz(33.1171, 21.0233, 80.8943)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CEB #A8EB5C
analogous
#5C61EB #9F5CEB #E75CEB
triadic
#9F5CEB #EB9F5C #5CEB9F
tetradic
#9F5CEB #EB5C61 #A8EB5C #5CEBE7
square
#9F5CEB #EB5C61 #A8EB5C #5CEBE7
split-complementary
#9F5CEB #EBE75C #61EB5C
monochromatic
#6116B6 #7F25E4 #9F5CEB #BF93F2 #DFC9F8

Accessibility & contrast

On white

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

On black

5.20
#9F5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CEB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CEB#FFFFFF#000000##000000
##9F5CEB1.004.035.205.20
#FFFFFF4.031.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#307EE8
Tritanopia (blue-blind)
#907A9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5ceb;
/* rgb */ color: rgb(159, 92, 235);
/* oklch */ color: oklch(61.8% 0.209 302.2);
Tailwind
colors: {
  custom: {
    50: '#c08df2',
    500: '#9f5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ceb;
$custom-light: #c08df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ceb",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 268.112,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61805,
    "c": 0.20856,
    "h": 302.2
  },
  "luminance": 0.21023
}

Semantic roles & 50–950 ramp

primary
#9F5CEB
secondary
#D3EAB8
accent
#DA0B79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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