#5F3CAE#5F3CAE

#5F3CAE is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.172 H 292.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5F3CAE
RGBrgb(95, 60, 174)
HSLhsl(258, 49%, 46%)
HSVhsv(258, 66%, 68%)
CMYKcmyk(45.4%, 65.5%, 0%, 31.8%)
CIE-LABlab(35.44, 42.16, -55.71)
CIE-LCHlch(35.44, 69.87, 307.12°)
OKLaboklab(46.17% 0.0658 -0.1593)
OKLCHoklch(46.17% 0.172 292.5)
XYZxyz(13.9730, 8.7202, 40.9831)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CAE #8BAE3C
analogous
#3C52AE #5F3CAE #983CAE
triadic
#5F3CAE #AE5F3C #3CAE5F
tetradic
#5F3CAE #AE3C52 #8BAE3C #3CAE98
square
#5F3CAE #AE3C52 #8BAE3C #3CAE98
split-complementary
#5F3CAE #AE983C #52AE3C
monochromatic
#2D1D53 #462C80 #5F3CAE #7F5FC8 #A48DD8

Accessibility & contrast

On white

7.65
#5F3CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F3CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CAE
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CAE#FFFFFF#000000##FFFFFF
##5F3CAE1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#48576F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3cae;
/* rgb */ color: rgb(95, 60, 174);
/* oklch */ color: oklch(46.2% 0.172 292.5);
Tailwind
colors: {
  custom: {
    50: '#9374c7',
    500: '#5f3cae',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cae;
$custom-light: #9374c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cae",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 174
  },
  "hsl": {
    "h": 258.421,
    "s": 48.718,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46165,
    "c": 0.17238,
    "h": 292.5
  },
  "luminance": 0.08721
}

Semantic roles & 50–950 ramp

primary
#5F3CAE
secondary
#AFC283
accent
#D850AE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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