#5F3EAF#5F3EAF

#5F3EAF is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.171 H 291.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5F3EAF
RGBrgb(95, 62, 175)
HSLhsl(258, 48%, 46%)
HSVhsv(258, 65%, 69%)
CMYKcmyk(45.7%, 64.6%, 0%, 31.4%)
CIE-LABlab(35.93, 41.33, -55.51)
CIE-LCHlch(35.93, 69.20, 306.67°)
OKLaboklab(46.54% 0.0636 -0.1587)
OKLCHoklch(46.54% 0.171 291.8)
XYZxyz(14.1777, 8.9728, 41.5341)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EAF #8EAF3E
analogous
#3E56AF #5F3EAF #983EAF
triadic
#5F3EAF #AF5F3E #3EAF5F
tetradic
#5F3EAF #AF3E56 #8EAF3E #3EAF98
square
#5F3EAF #AF3E56 #8EAF3E #3EAF98
split-complementary
#5F3EAF #AF983E #56AF3E
monochromatic
#2E1E55 #462E82 #5F3EAF #8063C8 #A590D8

Accessibility & contrast

On white

7.51
#5F3EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F3EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EAF
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EAF#FFFFFF#000000##FFFFFF
##5F3EAF1.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#475971
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3eaf;
/* rgb */ color: rgb(95, 62, 175);
/* oklch */ color: oklch(46.5% 0.171 291.8);
Tailwind
colors: {
  custom: {
    50: '#9375c8',
    500: '#5f3eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eaf;
$custom-light: #9375c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eaf",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 257.522,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46545,
    "c": 0.17097,
    "h": 291.8
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

primary
#5F3EAF
secondary
#B1C386
accent
#D751B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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