#5F348D#5F348D

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

Color values

HEX#5F348D
RGBrgb(95, 52, 141)
HSLhsl(269, 46%, 38%)
HSVhsv(269, 63%, 55%)
CMYKcmyk(32.6%, 63.1%, 0%, 44.7%)
CIE-LABlab(31.38, 37.63, -42.31)
CIE-LCHlch(31.38, 56.62, 311.65°)
OKLaboklab(42.46% 0.078 -0.1199)
OKLCHoklch(42.46% 0.143 303)
XYZxyz(10.7539, 6.8120, 25.9424)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F348D #628D34
analogous
#34358D #5F348D #8B348D
triadic
#5F348D #8D5F34 #348D5F
tetradic
#5F348D #8D3435 #628D34 #348D8B
square
#5F348D #8D3435 #628D34 #348D8B
split-complementary
#5F348D #8D8B34 #358D34
monochromatic
#231334 #412460 #5F348D #7D44BA #9C71CB

Accessibility & contrast

On white

8.89
#5F348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F348D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F348D
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F348D#FFFFFF#000000##FFFFFF
##5F348D1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#1B4A8B
Tritanopia (blue-blind)
#56475B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f348d;
/* rgb */ color: rgb(95, 52, 141);
/* oklch */ color: oklch(42.5% 0.143 303.0);
Tailwind
colors: {
  custom: {
    50: '#906eaf',
    500: '#5f348d',
    950: '#000000',
  },
}
SCSS
$custom: #5f348d;
$custom-light: #906eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f348d",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 268.989,
    "s": 46.114,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42458,
    "c": 0.14301,
    "h": 303
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#5F348D
secondary
#90B36A
accent
#D65296
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F348D

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

Preview Lab → · Contrast checker → · Palette generator →

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