#5F15A0#5F15A0

#5F15A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.6% C 0.198 H 301.3°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5F15A0
RGBrgb(95, 21, 160)
HSLhsl(272, 77%, 35%)
HSVhsv(272, 87%, 63%)
CMYKcmyk(40.6%, 86.9%, 0%, 37.3%)
CIE-LABlab(28.13, 55.85, -59.22)
CIE-LCHlch(28.13, 81.40, 313.33°)
OKLaboklab(40.64% 0.103 -0.1694)
OKLCHoklch(40.64% 0.198 301.3)
XYZxyz(11.3311, 5.5072, 33.7169)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F15A0 #56A015
analogous
#1915A0 #5F15A0 #A0159C
triadic
#5F15A0 #A05F15 #15A05F
tetradic
#5F15A0 #A01915 #56A015 #159CA0
square
#5F15A0 #A01915 #56A015 #159CA0
split-complementary
#5F15A0 #9CA015 #15A019
monochromatic
#1F0734 #3F0E6A #5F15A0 #7F1CD6 #9D48E7

Accessibility & contrast

On white

9.99
#5F15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F15A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F15A0
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F15A0#FFFFFF#000000##FFFFFF
##5F15A01.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#503F5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f15a0;
/* rgb */ color: rgb(95, 21, 160);
/* oklch */ color: oklch(40.6% 0.198 301.3);
Tailwind
colors: {
  custom: {
    50: '#945fbd',
    500: '#5f15a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f15a0;
$custom-light: #945fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f15a0",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 271.942,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40643,
    "c": 0.19823,
    "h": 301.3
  },
  "luminance": 0.05507
}

Semantic roles & 50–950 ramp

primary
#5F15A0
secondary
#84C849
accent
#F3348E
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5F15A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5F15A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva