#9F5CEF#9F5CEF

#9F5CEF is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.1% C 0.213 H 301.4°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9F5CEF
RGBrgb(159, 92, 239)
HSLhsl(267, 82%, 65%)
HSVhsv(267, 62%, 94%)
CMYKcmyk(33.5%, 61.5%, 0%, 6.3%)
CIE-LABlab(53.23, 55.49, -64.05)
CIE-LCHlch(53.23, 84.74, 310.91°)
OKLaboklab(62.07% 0.1111 -0.1818)
OKLCHoklch(62.07% 0.213 301.4)
XYZxyz(33.7015, 21.2571, 83.9721)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CEF #ACEF5C
analogous
#5C62EF #9F5CEF #E95CEF
triadic
#9F5CEF #EF9F5C #5CEF9F
tetradic
#9F5CEF #EF5C62 #ACEF5C #5CEFE9
square
#9F5CEF #EF5C62 #ACEF5C #5CEFE9
split-complementary
#9F5CEF #EFE95C #62EF5C
monochromatic
#6113BE #7E24EA #9F5CEF #C094F4 #E1CBFA

Accessibility & contrast

On white

4.00
#9F5CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#9F5CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CEF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CEF#FFFFFF#000000##000000
##9F5CEF1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#2A7EEC
Tritanopia (blue-blind)
#8F7C9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5cef;
/* rgb */ color: rgb(159, 92, 239);
/* oklch */ color: oklch(62.1% 0.213 301.4);
Tailwind
colors: {
  custom: {
    50: '#c08df5',
    500: '#9f5cef',
    950: '#000000',
  },
}
SCSS
$custom: #9f5cef;
$custom-light: #c08df5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5cef",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 267.347,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62071,
    "c": 0.21303,
    "h": 301.4
  },
  "luminance": 0.21257
}

Semantic roles & 50–950 ramp

primary
#9F5CEF
secondary
#D6ECBA
accent
#DF077C
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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