#5F348E#5F348E

#5F348E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.144 H 302.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5F348E
RGBrgb(95, 52, 142)
HSLhsl(269, 46%, 38%)
HSVhsv(269, 63%, 56%)
CMYKcmyk(33.1%, 63.4%, 0%, 44.3%)
CIE-LABlab(31.44, 37.89, -42.81)
CIE-LCHlch(31.44, 57.17, 311.51°)
OKLaboklab(42.53% 0.0779 -0.1214)
OKLCHoklch(42.53% 0.144 302.7)
XYZxyz(10.8287, 6.8419, 26.3361)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F348E #638E34
analogous
#34368E #5F348E #8C348E
triadic
#5F348E #8E5F34 #348E5F
tetradic
#5F348E #8E3436 #638E34 #348E8C
square
#5F348E #8E3436 #638E34 #348E8C
split-complementary
#5F348E #8E8C34 #368E34
monochromatic
#231334 #412461 #5F348E #7D44BB #9C71CB

Accessibility & contrast

On white

8.87
#5F348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5F348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F348E
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F348E#FFFFFF#000000##FFFFFF
##5F348E1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#194A8C
Tritanopia (blue-blind)
#56475C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f348e;
/* rgb */ color: rgb(95, 52, 142);
/* oklch */ color: oklch(42.5% 0.144 302.7);
Tailwind
colors: {
  custom: {
    50: '#906eb0',
    500: '#5f348e',
    950: '#000000',
  },
}
SCSS
$custom: #5f348e;
$custom-light: #906eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f348e",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 268.667,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42531,
    "c": 0.14423,
    "h": 302.7
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#5F348E
secondary
#91B36A
accent
#D65297
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F348E

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

Preview Lab → · Contrast checker → · Palette generator →

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