#5F18A0#5F18A0

#5F18A0 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.9% C 0.196 H 301.1°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5F18A0
RGBrgb(95, 24, 160)
HSLhsl(271, 74%, 36%)
HSVhsv(271, 85%, 63%)
CMYKcmyk(40.6%, 85%, 0%, 37.3%)
CIE-LABlab(28.44, 54.94, -58.71)
CIE-LCHlch(28.44, 80.40, 313.10°)
OKLaboklab(40.86% 0.1012 -0.1679)
OKLCHoklch(40.86% 0.196 301.1)
XYZxyz(11.3895, 5.6241, 33.7364)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F18A0 #59A018
analogous
#1B18A0 #5F18A0 #A0189D
triadic
#5F18A0 #A05F18 #18A05F
tetradic
#5F18A0 #A01B18 #59A018 #189DA0
square
#5F18A0 #A01B18 #59A018 #189DA0
split-complementary
#5F18A0 #9DA018 #18A01B
monochromatic
#200836 #3F106B #5F18A0 #7F20D5 #9D4EE4

Accessibility & contrast

On white

9.88
#5F18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F18A0
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F18A0#FFFFFF#000000##FFFFFF
##5F18A01.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#50405F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f18a0;
/* rgb */ color: rgb(95, 24, 160);
/* oklch */ color: oklch(40.9% 0.196 301.1);
Tailwind
colors: {
  custom: {
    50: '#9360bd',
    500: '#5f18a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f18a0;
$custom-light: #9360bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f18a0",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 271.324,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40857,
    "c": 0.19602,
    "h": 301.1
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#5F18A0
secondary
#87C64D
accent
#F13790
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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