#5F3EA2#5F3EA2

#5F3EA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.5% C 0.155 H 294.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5F3EA2
RGBrgb(95, 62, 162)
HSLhsl(260, 45%, 44%)
HSVhsv(260, 62%, 64%)
CMYKcmyk(41.4%, 61.7%, 0%, 36.5%)
CIE-LABlab(34.98, 37.64, -49.28)
CIE-LCHlch(34.98, 62.01, 307.37°)
OKLaboklab(45.55% 0.0646 -0.1404)
OKLCHoklch(45.55% 0.155 294.7)
XYZxyz(12.9618, 8.4865, 35.1305)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EA2 #81A23E
analogous
#3E4FA2 #5F3EA2 #913EA2
triadic
#5F3EA2 #A25F3E #3EA25F
tetradic
#5F3EA2 #A23E4F #81A23E #3EA291
square
#5F3EA2 #A23E4F #81A23E #3EA291
split-complementary
#5F3EA2 #A2913E #4FA23E
monochromatic
#2B1C49 #452D76 #5F3EA2 #7E5CC1 #A189D2

Accessibility & contrast

On white

7.79
#5F3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3EA2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EA2#FFFFFF#000000##FFFFFF
##5F3EA21.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3ea2;
/* rgb */ color: rgb(95, 62, 162);
/* oklch */ color: oklch(45.5% 0.155 294.7);
Tailwind
colors: {
  custom: {
    50: '#9175be',
    500: '#5f3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ea2;
$custom-light: #9175be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ea2",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 259.8,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45549,
    "c": 0.15455,
    "h": 294.7
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#5F3EA2
secondary
#A8BC80
accent
#D453AA
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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