#5F13A0#5F13A0

#5F13A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.5% C 0.200 H 301.5°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5F13A0
RGBrgb(95, 19, 160)
HSLhsl(272, 79%, 35%)
HSVhsv(272, 88%, 63%)
CMYKcmyk(40.6%, 88.1%, 0%, 37.3%)
CIE-LABlab(27.94, 56.41, -59.53)
CIE-LCHlch(27.94, 82.01, 313.46°)
OKLaboklab(40.51% 0.1041 -0.1703)
OKLCHoklch(40.51% 0.2 301.5)
XYZxyz(11.2958, 5.4366, 33.7052)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F13A0 #54A013
analogous
#1813A0 #5F13A0 #A0139B
triadic
#5F13A0 #A05F13 #13A05F
tetradic
#5F13A0 #A01813 #54A013 #139BA0
square
#5F13A0 #A01813 #54A013 #139BA0
split-complementary
#5F13A0 #9BA013 #13A018
monochromatic
#1E0633 #3F0D69 #5F13A0 #7F19D7 #9D45E9

Accessibility & contrast

On white

10.06
#5F13A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F13A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F13A0
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F13A0#FFFFFF#000000##FFFFFF
##5F13A01.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#503F5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f13a0;
/* rgb */ color: rgb(95, 19, 160);
/* oklch */ color: oklch(40.5% 0.200 301.5);
Tailwind
colors: {
  custom: {
    50: '#945fbd',
    500: '#5f13a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f13a0;
$custom-light: #945fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f13a0",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 160
  },
  "hsl": {
    "h": 272.34,
    "s": 78.771,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40513,
    "c": 0.19957,
    "h": 301.5
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#5F13A0
secondary
#82C945
accent
#F5338C
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5F13A0

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

Preview Lab → · Contrast checker → · Palette generator →

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