#5F3CA2#5F3CA2

#5F3CA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.2% C 0.157 H 295.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5F3CA2
RGBrgb(95, 60, 162)
HSLhsl(261, 46%, 44%)
HSVhsv(261, 63%, 64%)
CMYKcmyk(41.4%, 63%, 0%, 36.5%)
CIE-LABlab(34.55, 38.79, -49.98)
CIE-LCHlch(34.55, 63.27, 307.81°)
OKLaboklab(45.24% 0.0669 -0.1425)
OKLCHoklch(45.24% 0.157 295.2)
XYZxyz(12.8550, 8.2730, 35.0950)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CA2 #7FA23C
analogous
#3C4CA2 #5F3CA2 #923CA2
triadic
#5F3CA2 #A25F3C #3CA25F
tetradic
#5F3CA2 #A23C4C #7FA23C #3CA292
square
#5F3CA2 #A23C4C #7FA23C #3CA292
split-complementary
#5F3CA2 #A2923C #4CA23C
monochromatic
#2B1B49 #452B75 #5F3CA2 #7D59C2 #A086D2

Accessibility & contrast

On white

7.91
#5F3CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5F3CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CA2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CA2#FFFFFF#000000##FFFFFF
##5F3CA21.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#4E5369
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f3ca2;
/* rgb */ color: rgb(95, 60, 162);
/* oklch */ color: oklch(45.2% 0.157 295.2);
Tailwind
colors: {
  custom: {
    50: '#9173be',
    500: '#5f3ca2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ca2;
$custom-light: #9173be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ca2",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 260.588,
    "s": 45.946,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45235,
    "c": 0.1574,
    "h": 295.2
  },
  "luminance": 0.08273
}

Semantic roles & 50–950 ramp

primary
#5F3CA2
secondary
#A7BC7D
accent
#D652A9
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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