#5F3DAF#5F3DAF

#5F3DAF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.4% C 0.172 H 292.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5F3DAF
RGBrgb(95, 61, 175)
HSLhsl(258, 48%, 46%)
HSVhsv(258, 65%, 69%)
CMYKcmyk(45.7%, 65.1%, 0%, 31.4%)
CIE-LABlab(35.72, 41.89, -55.85)
CIE-LCHlch(35.72, 69.81, 306.87°)
OKLaboklab(46.39% 0.0646 -0.1597)
OKLCHoklch(46.39% 0.172 292)
XYZxyz(14.1238, 8.8651, 41.5161)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DAF #8DAF3D
analogous
#3D54AF #5F3DAF #983DAF
triadic
#5F3DAF #AF5F3D #3DAF5F
tetradic
#5F3DAF #AF3D54 #8DAF3D #3DAF98
square
#5F3DAF #AF3D54 #8DAF3D #3DAF98
split-complementary
#5F3DAF #AF983D #54AF3D
monochromatic
#2E1D54 #462D82 #5F3DAF #8061C8 #A48FD8

Accessibility & contrast

On white

7.57
#5F3DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5F3DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DAF
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DAF#FFFFFF#000000##FFFFFF
##5F3DAF1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3daf;
/* rgb */ color: rgb(95, 61, 175);
/* oklch */ color: oklch(46.4% 0.172 292.0);
Tailwind
colors: {
  custom: {
    50: '#9374c8',
    500: '#5f3daf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3daf;
$custom-light: #9374c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3daf",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 257.895,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46394,
    "c": 0.1723,
    "h": 292
  },
  "luminance": 0.08866
}

Semantic roles & 50–950 ramp

primary
#5F3DAF
secondary
#B0C385
accent
#D850AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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