#9F5EFD#9F5EFD

#9F5EFD is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.3% C 0.226 H 298.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9F5EFD
RGBrgb(159, 94, 253)
HSLhsl(265, 98%, 68%)
HSVhsv(265, 63%, 99%)
CMYKcmyk(37.2%, 62.8%, 0%, 0.8%)
CIE-LABlab(54.52, 57.89, -69.76)
CIE-LCHlch(54.52, 90.65, 309.69°)
OKLaboklab(63.3% 0.1079 -0.1986)
OKLCHoklch(63.3% 0.226 298.5)
XYZxyz(36.0260, 22.4677, 95.3481)
Luminance0.2247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5EFD #BCFD5E
analogous
#5E6CFD #9F5EFD #EE5EFD
triadic
#9F5EFD #FD9F5E #5EFD9F
tetradic
#9F5EFD #FD5E6C #BCFD5E #5EFDEE
square
#9F5EFD #FD5E6C #BCFD5E #5EFDEE
split-complementary
#9F5EFD #FDEE5E #6CFD5E
monochromatic
#5C03DE #7B22FC #9F5EFD #C39AFE #E7D7FF

Accessibility & contrast

On white

3.82
#9F5EFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#9F5EFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5EFD
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5EFD#FFFFFF#000000##000000
##9F5EFD1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#0081FA
Tritanopia (blue-blind)
#8982A5
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9f5efd;
/* rgb */ color: rgb(159, 94, 253);
/* oklch */ color: oklch(63.3% 0.226 298.5);
Tailwind
colors: {
  custom: {
    50: '#c18fff',
    500: '#9f5efd',
    950: '#000000',
  },
}
SCSS
$custom: #9f5efd;
$custom-light: #c18fff;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5efd",
  "rgb": {
    "r": 159,
    "g": 94,
    "b": 253
  },
  "hsl": {
    "h": 264.528,
    "s": 97.546,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63297,
    "c": 0.226,
    "h": 298.5
  },
  "luminance": 0.22468
}

Semantic roles & 50–950 ramp

primary
#9F5EFD
secondary
#E0F4C3
accent
#E60088
background
#FCF9FF
surface
#F8F1FF
border
#D1CBD7
text
#130D18
muted
#827E86

Preview Lab

Preview with #9F5EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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