#5F3E95#5F3E95

#5F3E95 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.6% C 0.138 H 298.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5F3E95
RGBrgb(95, 62, 149)
HSLhsl(263, 41%, 41%)
HSVhsv(263, 58%, 58%)
CMYKcmyk(36.2%, 58.4%, 0%, 41.6%)
CIE-LABlab(34.08, 34.02, -42.86)
CIE-LCHlch(34.08, 54.72, 308.44°)
OKLaboklab(44.61% 0.0649 -0.1215)
OKLCHoklch(44.61% 0.138 298.1)
XYZxyz(11.8654, 8.0479, 29.3562)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3E95 #74953E
analogous
#3E4995 #5F3E95 #8B3E95
triadic
#5F3E95 #955F3E #3E955F
tetradic
#5F3E95 #953E49 #74953E #3E958B
square
#5F3E95 #953E49 #74953E #3E958B
split-complementary
#5F3E95 #958B3E #49953E
monochromatic
#281A3F #432C6A #5F3E95 #7C57B9 #9E82CB

Accessibility & contrast

On white

8.05
#5F3E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F3E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3E95
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3E95#FFFFFF#000000##FFFFFF
##5F3E951.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135098
Deuteranopia (green-blind)
#214F93
Tritanopia (blue-blind)
#535063
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f3e95;
/* rgb */ color: rgb(95, 62, 149);
/* oklch */ color: oklch(44.6% 0.138 298.1);
Tailwind
colors: {
  custom: {
    50: '#9074b5',
    500: '#5f3e95',
    950: '#000000',
  },
}
SCSS
$custom: #5f3e95;
$custom-light: #9074b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3e95",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 149
  },
  "hsl": {
    "h": 262.759,
    "s": 41.232,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44609,
    "c": 0.13775,
    "h": 298.1
  },
  "luminance": 0.08048
}

Semantic roles & 50–950 ramp

primary
#5F3E95
secondary
#9FB57A
accent
#D157A3
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #5F3E95

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

Preview Lab → · Contrast checker → · Palette generator →

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