#5F3CAF#5F3CAF

#5F3CAF is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.2% C 0.174 H 292.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5F3CAF
RGBrgb(95, 60, 175)
HSLhsl(258, 49%, 46%)
HSVhsv(258, 66%, 69%)
CMYKcmyk(45.7%, 65.7%, 0%, 31.4%)
CIE-LABlab(35.52, 42.45, -56.18)
CIE-LCHlch(35.52, 70.42, 307.07°)
OKLaboklab(46.25% 0.0657 -0.1607)
OKLCHoklch(46.25% 0.174 292.2)
XYZxyz(14.0709, 8.7593, 41.4985)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CAF #8CAF3C
analogous
#3C52AF #5F3CAF #983CAF
triadic
#5F3CAF #AF5F3C #3CAF5F
tetradic
#5F3CAF #AF3C52 #8CAF3C #3CAF98
square
#5F3CAF #AF3C52 #8CAF3C #3CAF98
split-complementary
#5F3CAF #AF983C #52AF3C
monochromatic
#2E1D54 #462C81 #5F3CAF #8060C8 #A48DD8

Accessibility & contrast

On white

7.63
#5F3CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5F3CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CAF
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CAF#FFFFFF#000000##FFFFFF
##5F3CAF1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#475770
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3caf;
/* rgb */ color: rgb(95, 60, 175);
/* oklch */ color: oklch(46.2% 0.174 292.2);
Tailwind
colors: {
  custom: {
    50: '#9374c8',
    500: '#5f3caf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3caf;
$custom-light: #9374c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3caf",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 175
  },
  "hsl": {
    "h": 258.261,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46245,
    "c": 0.17362,
    "h": 292.2
  },
  "luminance": 0.0876
}

Semantic roles & 50–950 ramp

primary
#5F3CAF
secondary
#B0C384
accent
#D84FAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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