#9F54E4#9F54E4

#9F54E4 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.3% C 0.212 H 304.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9F54E4
RGBrgb(159, 84, 228)
HSLhsl(271, 73%, 61%)
HSVhsv(271, 63%, 89%)
CMYKcmyk(30.3%, 63.2%, 0%, 10.6%)
CIE-LABlab(51.05, 56.88, -61.38)
CIE-LCHlch(51.05, 83.69, 312.82°)
OKLaboklab(60.27% 0.1208 -0.1739)
OKLCHoklch(60.27% 0.212 304.8)
XYZxyz(31.4689, 19.3132, 75.4537)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F54E4 #99E454
analogous
#5754E4 #9F54E4 #E454E1
triadic
#9F54E4 #E49F54 #54E49F
tetradic
#9F54E4 #E45754 #99E454 #54E1E4
square
#9F54E4 #E45754 #99E454 #54E1E4
split-complementary
#9F54E4 #E1E454 #54E457
monochromatic
#621AA4 #8122D9 #9F54E4 #BD89EC #DABEF5

Accessibility & contrast

On white

4.32
#9F54E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#9F54E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F54E4
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F54E4#FFFFFF#000000##000000
##9F54E41.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#2E7AE1
Tritanopia (blue-blind)
#937295
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f54e4;
/* rgb */ color: rgb(159, 84, 228);
/* oklch */ color: oklch(60.3% 0.212 304.8);
Tailwind
colors: {
  custom: {
    50: '#c088ed',
    500: '#9f54e4',
    950: '#000000',
  },
}
SCSS
$custom: #9f54e4;
$custom-light: #c088ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9f54e4",
  "rgb": {
    "r": 159,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 271.25,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60269,
    "c": 0.21175,
    "h": 304.8
  },
  "luminance": 0.19313
}

Semantic roles & 50–950 ramp

primary
#9F54E4
secondary
#C9E5AF
accent
#D5116F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F54E4

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

Preview Lab → · Contrast checker → · Palette generator →

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