#5F1DA6#5F1DA6

#5F1DA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.198 H 298.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5F1DA6
RGBrgb(95, 29, 166)
HSLhsl(269, 70%, 38%)
HSVhsv(269, 83%, 65%)
CMYKcmyk(42.8%, 82.5%, 0%, 34.9%)
CIE-LABlab(29.57, 54.67, -60.49)
CIE-LCHlch(29.57, 81.53, 312.11°)
OKLaboklab(41.81% 0.0958 -0.1732)
OKLCHoklch(41.81% 0.198 298.9)
XYZxyz(12.0398, 6.0646, 36.6053)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1DA6 #64A61D
analogous
#1D20A6 #5F1DA6 #A31DA6
triadic
#5F1DA6 #A65F1D #1DA65F
tetradic
#5F1DA6 #A61D20 #64A61D #1DA6A3
square
#5F1DA6 #A61D20 #64A61D #1DA6A3
split-complementary
#5F1DA6 #A6A31D #20A61D
monochromatic
#230B3E #411472 #5F1DA6 #7D27D9 #9C5BE2

Accessibility & contrast

On white

9.49
#5F1DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F1DA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1DA6
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1DA6#FFFFFF#000000##FFFFFF
##5F1DA61.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#4D4563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f1da6;
/* rgb */ color: rgb(95, 29, 166);
/* oklch */ color: oklch(41.8% 0.198 298.9);
Tailwind
colors: {
  custom: {
    50: '#9463c2',
    500: '#5f1da6',
    950: '#000000',
  },
}
SCSS
$custom: #5f1da6;
$custom-light: #9463c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1da6",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 268.905,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41806,
    "c": 0.19788,
    "h": 298.9
  },
  "luminance": 0.06065
}

Semantic roles & 50–950 ramp

primary
#5F1DA6
secondary
#91C659
accent
#ED3B97
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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