#5F3EA3#5F3EA3

#5F3EA3 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.6% C 0.156 H 294.5°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5F3EA3
RGBrgb(95, 62, 163)
HSLhsl(260, 45%, 44%)
HSVhsv(260, 62%, 64%)
CMYKcmyk(41.7%, 62%, 0%, 36.1%)
CIE-LABlab(35.05, 37.92, -49.77)
CIE-LCHlch(35.05, 62.57, 307.30°)
OKLaboklab(45.62% 0.0645 -0.1418)
OKLCHoklch(45.62% 0.156 294.5)
XYZxyz(13.0510, 8.5222, 35.6006)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EA3 #82A33E
analogous
#3E50A3 #5F3EA3 #923EA3
triadic
#5F3EA3 #A35F3E #3EA35F
tetradic
#5F3EA3 #A33E50 #82A33E #3EA392
square
#5F3EA3 #A33E50 #82A33E #3EA392
split-complementary
#5F3EA3 #A3923E #50A33E
monochromatic
#2B1C4A #452D77 #5F3EA3 #7E5DC1 #A189D2

Accessibility & contrast

On white

7.77
#5F3EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F3EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EA3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EA3#FFFFFF#000000##FFFFFF
##5F3EA31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0051A1
Tritanopia (blue-blind)
#4D556A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f3ea3;
/* rgb */ color: rgb(95, 62, 163);
/* oklch */ color: oklch(45.6% 0.156 294.5);
Tailwind
colors: {
  custom: {
    50: '#9175bf',
    500: '#5f3ea3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ea3;
$custom-light: #9175bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ea3",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 259.604,
    "s": 44.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45623,
    "c": 0.15582,
    "h": 294.5
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#5F3EA3
secondary
#A9BD80
accent
#D553AA
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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