#9F5FEC#9F5FEC

#9F5FEC is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.3% C 0.206 H 301.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9F5FEC
RGBrgb(159, 95, 236)
HSLhsl(267, 79%, 65%)
HSVhsv(267, 60%, 93%)
CMYKcmyk(32.6%, 59.7%, 0%, 7.5%)
CIE-LABlab(53.61, 53.23, -61.75)
CIE-LCHlch(53.61, 81.53, 310.76°)
OKLaboklab(62.29% 0.1077 -0.175)
OKLCHoklch(62.29% 0.206 301.6)
XYZxyz(33.5270, 21.6114, 81.7457)
Luminance0.2161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5FEC #ACEC5F
analogous
#5F66EC #9F5FEC #E55FEC
triadic
#9F5FEC #EC9F5F #5FEC9F
tetradic
#9F5FEC #EC5F66 #ACEC5F #5FECE5
square
#9F5FEC #EC5F66 #ACEC5F #5FECE5
split-complementary
#9F5FEC #ECE55F #66EC5F
monochromatic
#6116BA #7E28E6 #9F5FEC #C096F2 #E1CCF9

Accessibility & contrast

On white

3.95
#9F5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#9F5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5FEC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5FEC#FFFFFF#000000##000000
##9F5FEC1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#057FF1
Deuteranopia (green-blind)
#347FE9
Tritanopia (blue-blind)
#8F7C9D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9f5fec;
/* rgb */ color: rgb(159, 95, 236);
/* oklch */ color: oklch(62.3% 0.206 301.6);
Tailwind
colors: {
  custom: {
    50: '#c08ff3',
    500: '#9f5fec',
    950: '#000000',
  },
}
SCSS
$custom: #9f5fec;
$custom-light: #c08ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5fec",
  "rgb": {
    "r": 159,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 267.234,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62289,
    "c": 0.20554,
    "h": 301.6
  },
  "luminance": 0.21611
}

Semantic roles & 50–950 ramp

primary
#9F5FEC
secondary
#D6EBBB
accent
#DB0A7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85

Preview Lab

Preview with #9F5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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