#5F3D9D#5F3D9D

#5F3D9D is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.0% C 0.150 H 296.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5F3D9D
RGBrgb(95, 61, 157)
HSLhsl(261, 44%, 43%)
HSVhsv(261, 61%, 62%)
CMYKcmyk(39.5%, 61.1%, 0%, 38.4%)
CIE-LABlab(34.41, 36.82, -47.19)
CIE-LCHlch(34.41, 59.85, 307.96°)
OKLaboklab(45.02% 0.066 -0.1342)
OKLCHoklch(45.02% 0.15 296.2)
XYZxyz(12.4723, 8.2045, 32.8183)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3D9D #7B9D3D
analogous
#3D4B9D #5F3D9D #8F3D9D
triadic
#5F3D9D #9D5F3D #3D9D5F
tetradic
#5F3D9D #9D3D4B #7B9D3D #3D9D8F
square
#5F3D9D #9D3D4B #7B9D3D #3D9D8F
split-complementary
#5F3D9D #9D8F3D #4B9D3D
monochromatic
#2A1B45 #442C71 #5F3D9D #7D59BE #9F85D0

Accessibility & contrast

On white

7.95
#5F3D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F3D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3D9D
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3D9D#FFFFFF#000000##FFFFFF
##5F3D9D1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#10509B
Tritanopia (blue-blind)
#505267
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f3d9d;
/* rgb */ color: rgb(95, 61, 157);
/* oklch */ color: oklch(45.0% 0.150 296.2);
Tailwind
colors: {
  custom: {
    50: '#9174bb',
    500: '#5f3d9d',
    950: '#000000',
  },
}
SCSS
$custom: #5f3d9d;
$custom-light: #9174bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3d9d",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 157
  },
  "hsl": {
    "h": 261.25,
    "s": 44.037,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4502,
    "c": 0.1496,
    "h": 296.2
  },
  "luminance": 0.08205
}

Semantic roles & 50–950 ramp

primary
#5F3D9D
secondary
#A4BA7C
accent
#D454A7
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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