#5F3AA2#5F3AA2

#5F3AA2 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.9% C 0.160 H 295.6°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5F3AA2
RGBrgb(95, 58, 162)
HSLhsl(261, 47%, 43%)
HSVhsv(261, 64%, 64%)
CMYKcmyk(41.4%, 64.2%, 0%, 36.5%)
CIE-LABlab(34.12, 39.92, -50.66)
CIE-LCHlch(34.12, 64.50, 308.24°)
OKLaboklab(44.93% 0.0693 -0.1445)
OKLCHoklch(44.93% 0.16 295.6)
XYZxyz(12.7522, 8.0674, 35.0607)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AA2 #7DA23A
analogous
#3A49A2 #5F3AA2 #933AA2
triadic
#5F3AA2 #A25F3A #3AA25F
tetradic
#5F3AA2 #A23A49 #7DA23A #3AA293
square
#5F3AA2 #A23A49 #7DA23A #3AA293
split-complementary
#5F3AA2 #A2933A #49A23A
monochromatic
#2A1A48 #452A75 #5F3AA2 #7D57C3 #A084D3

Accessibility & contrast

On white

8.03
#5F3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AA2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AA2#FFFFFF#000000##FFFFFF
##5F3AA21.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#4E5268
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f3aa2;
/* rgb */ color: rgb(95, 58, 162);
/* oklch */ color: oklch(44.9% 0.160 295.6);
Tailwind
colors: {
  custom: {
    50: '#9272be',
    500: '#5f3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aa2;
$custom-light: #9272be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aa2",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 261.346,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44928,
    "c": 0.1602,
    "h": 295.6
  },
  "luminance": 0.08068
}

Semantic roles & 50–950 ramp

primary
#5F3AA2
secondary
#A5BD7B
accent
#D751A7
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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