#9F5CF7#9F5CF7

#9F5CF7 is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.6% C 0.222 H 299.9°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9F5CF7
RGBrgb(159, 92, 247)
HSLhsl(266, 91%, 66%)
HSVhsv(266, 63%, 97%)
CMYKcmyk(35.6%, 62.8%, 0%, 3.1%)
CIE-LABlab(53.75, 57.43, -67.67)
CIE-LCHlch(53.75, 88.75, 310.32°)
OKLaboklab(62.61% 0.1105 -0.1924)
OKLCHoklch(62.61% 0.222 299.9)
XYZxyz(34.9096, 21.7403, 90.3348)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CF7 #B4F75C
analogous
#5C67F7 #9F5CF7 #EC5CF7
triadic
#9F5CF7 #F79F5C #5CF79F
tetradic
#9F5CF7 #F75C67 #B4F75C #5CF7EC
square
#9F5CF7 #F75C67 #B4F75C #5CF7EC
split-complementary
#9F5CF7 #F7EC5C #67F75C
monochromatic
#5F0ACE #7D22F4 #9F5CF7 #C196FA #E4D1FD

Accessibility & contrast

On white

3.93
#9F5CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#9F5CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CF7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CF7#FFFFFF#000000##000000
##9F5CF71.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FC
Deuteranopia (green-blind)
#157FF4
Tritanopia (blue-blind)
#8C7EA1
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9f5cf7;
/* rgb */ color: rgb(159, 92, 247);
/* oklch */ color: oklch(62.6% 0.222 299.9);
Tailwind
colors: {
  custom: {
    50: '#c18efb',
    500: '#9f5cf7',
    950: '#000000',
  },
}
SCSS
$custom: #9f5cf7;
$custom-light: #c18efb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5cf7",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 247
  },
  "hsl": {
    "h": 265.935,
    "s": 90.643,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62614,
    "c": 0.22192,
    "h": 299.9
  },
  "luminance": 0.21741
}

Semantic roles & 50–950 ramp

primary
#9F5CF7
secondary
#DBF1BE
accent
#E60082
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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