#9F51CA#9F51CA

#9F51CA is a mid, vivid violet. Relative luminance 0.175; OKLCH L 58.2% C 0.188 H 311.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9F51CA
RGBrgb(159, 81, 202)
HSLhsl(279, 53%, 55%)
HSVhsv(279, 60%, 79%)
CMYKcmyk(21.3%, 59.9%, 0%, 20.8%)
CIE-LABlab(48.91, 52.51, -50.01)
CIE-LCHlch(48.91, 72.51, 316.40°)
OKLaboklab(58.21% 0.1252 -0.1405)
OKLCHoklch(58.21% 0.188 311.7)
XYZxyz(27.8992, 17.5207, 57.7778)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51CA #7CCA51
analogous
#6251CA #9F51CA #CA51B8
triadic
#9F51CA #CA9F51 #51CA9F
tetradic
#9F51CA #CA6251 #7CCA51 #51B8CA
square
#9F51CA #CA6251 #7CCA51 #51B8CA
split-complementary
#9F51CA #B8CA51 #51CA62
monochromatic
#5D257B #8034AA #9F51CA #B980D8 #D3AFE7

Accessibility & contrast

On white

4.66
#9F51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#9F51CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9F51CA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51CA#FFFFFF#000000##FFFFFF
##9F51CA1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2570CE
Deuteranopia (green-blind)
#4776C7
Tritanopia (blue-blind)
#9A6786
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9f51ca;
/* rgb */ color: rgb(159, 81, 202);
/* oklch */ color: oklch(58.2% 0.188 311.7);
Tailwind
colors: {
  custom: {
    50: '#be86db',
    500: '#9f51ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f51ca;
$custom-light: #be86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51ca",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 278.678,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58205,
    "c": 0.18821,
    "h": 311.7
  },
  "luminance": 0.1752
}

Semantic roles & 50–950 ramp

primary
#9F51CA
secondary
#B4D5A2
accent
#DD4B7F
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9F51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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