#5F3FA2#5F3FA2

#5F3FA2 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.7% C 0.153 H 294.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5F3FA2
RGBrgb(95, 63, 162)
HSLhsl(259, 44%, 44%)
HSVhsv(259, 61%, 64%)
CMYKcmyk(41.4%, 61.1%, 0%, 36.5%)
CIE-LABlab(35.19, 37.06, -48.93)
CIE-LCHlch(35.19, 61.38, 307.14°)
OKLaboklab(45.71% 0.0634 -0.1394)
OKLCHoklch(45.71% 0.153 294.5)
XYZxyz(13.0167, 8.5962, 35.1488)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FA2 #82A23F
analogous
#3F51A2 #5F3FA2 #913FA2
triadic
#5F3FA2 #A25F3F #3FA25F
tetradic
#5F3FA2 #A23F51 #82A23F #3FA291
square
#5F3FA2 #A23F51 #82A23F #3FA291
split-complementary
#5F3FA2 #A2913F #51A23F
monochromatic
#2B1D4A #452E76 #5F3FA2 #7E5EC0 #A18AD1

Accessibility & contrast

On white

7.72
#5F3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3FA2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FA2#FFFFFF#000000##FFFFFF
##5F3FA21.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#0851A0
Tritanopia (blue-blind)
#4E556A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3fa2;
/* rgb */ color: rgb(95, 63, 162);
/* oklch */ color: oklch(45.7% 0.153 294.5);
Tailwind
colors: {
  custom: {
    50: '#9175be',
    500: '#5f3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fa2;
$custom-light: #9175be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fa2",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 259.394,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45708,
    "c": 0.1531,
    "h": 294.5
  },
  "luminance": 0.08597
}

Semantic roles & 50–950 ramp

primary
#5F3FA2
secondary
#A9BC81
accent
#D454AA
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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