#5F3DA2#5F3DA2

#5F3DA2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.4% C 0.156 H 294.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5F3DA2
RGBrgb(95, 61, 162)
HSLhsl(260, 45%, 44%)
HSVhsv(260, 62%, 64%)
CMYKcmyk(41.4%, 62.3%, 0%, 36.5%)
CIE-LABlab(34.76, 38.21, -49.63)
CIE-LCHlch(34.76, 62.64, 307.59°)
OKLaboklab(45.39% 0.0658 -0.1414)
OKLCHoklch(45.39% 0.156 294.9)
XYZxyz(12.9079, 8.3787, 35.1126)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DA2 #80A23D
analogous
#3D4DA2 #5F3DA2 #913DA2
triadic
#5F3DA2 #A25F3D #3DA25F
tetradic
#5F3DA2 #A23D4D #80A23D #3DA291
square
#5F3DA2 #A23D4D #80A23D #3DA291
split-complementary
#5F3DA2 #A2913D #4DA23D
monochromatic
#2B1C49 #452C76 #5F3DA2 #7D5BC1 #A187D2

Accessibility & contrast

On white

7.85
#5F3DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5F3DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DA2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DA2#FFFFFF#000000##FFFFFF
##5F3DA21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#4E5469
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f3da2;
/* rgb */ color: rgb(95, 61, 162);
/* oklch */ color: oklch(45.4% 0.156 294.9);
Tailwind
colors: {
  custom: {
    50: '#9174be',
    500: '#5f3da2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3da2;
$custom-light: #9174be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3da2",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 260.198,
    "s": 45.291,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45391,
    "c": 0.15598,
    "h": 294.9
  },
  "luminance": 0.08379
}

Semantic roles & 50–950 ramp

primary
#5F3DA2
secondary
#A8BC7E
accent
#D553A9
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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