#9F5CED#9F5CED

#9F5CED is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.9% C 0.211 H 301.8°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9F5CED
RGBrgb(159, 92, 237)
HSLhsl(268, 80%, 65%)
HSVhsv(268, 61%, 93%)
CMYKcmyk(32.9%, 61.2%, 0%, 7.1%)
CIE-LABlab(53.10, 55.01, -63.13)
CIE-LCHlch(53.10, 83.74, 311.07°)
OKLaboklab(61.94% 0.1112 -0.1791)
OKLCHoklch(61.94% 0.211 301.8)
XYZxyz(33.4077, 21.1395, 82.4247)
Luminance0.2114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CED #AAED5C
analogous
#5C62ED #9F5CED #E75CED
triadic
#9F5CED #ED9F5C #5CED9F
tetradic
#9F5CED #ED5C62 #AAED5C #5CEDE7
square
#9F5CED #ED5C62 #AAED5C #5CEDE7
split-complementary
#9F5CED #EDE75C #62ED5C
monochromatic
#6115BA #7F25E7 #9F5CED #BF93F3 #E0CAF9

Accessibility & contrast

On white

4.02
#9F5CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#9F5CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CED
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CED#FFFFFF#000000##000000
##9F5CED1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#2D7EEA
Tritanopia (blue-blind)
#8F7B9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5ced;
/* rgb */ color: rgb(159, 92, 237);
/* oklch */ color: oklch(61.9% 0.211 301.8);
Tailwind
colors: {
  custom: {
    50: '#c08df4',
    500: '#9f5ced',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ced;
$custom-light: #c08df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ced",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 237
  },
  "hsl": {
    "h": 267.724,
    "s": 80.11,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61938,
    "c": 0.21079,
    "h": 301.8
  },
  "luminance": 0.2114
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F5CED

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

Preview Lab → · Contrast checker → · Palette generator →

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