#5F349D#5F349D

#5F349D is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.162 H 298.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5F349D
RGBrgb(95, 52, 157)
HSLhsl(265, 50%, 41%)
HSVhsv(265, 67%, 62%)
CMYKcmyk(39.5%, 66.9%, 0%, 38.4%)
CIE-LABlab(32.53, 41.87, -50.22)
CIE-LCHlch(32.53, 65.38, 309.82°)
OKLaboklab(43.66% 0.0766 -0.1431)
OKLCHoklch(43.66% 0.162 298.2)
XYZxyz(12.0316, 7.3230, 32.6713)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F349D #729D34
analogous
#343E9D #5F349D #93349D
triadic
#5F349D #9D5F34 #349D5F
tetradic
#5F349D #9D343E #729D34 #349D93
square
#5F349D #9D343E #729D34 #349D93
split-complementary
#5F349D #9D9334 #3E9D34
monochromatic
#271641 #43256F #5F349D #7C4BC3 #9E79D3

Accessibility & contrast

On white

8.52
#5F349D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5F349D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F349D
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F349D#FFFFFF#000000##FFFFFF
##5F349D1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#504C64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f349d;
/* rgb */ color: rgb(95, 52, 157);
/* oklch */ color: oklch(43.7% 0.162 298.2);
Tailwind
colors: {
  custom: {
    50: '#916ebb',
    500: '#5f349d',
    950: '#000000',
  },
}
SCSS
$custom: #5f349d;
$custom-light: #916ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f349d",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 157
  },
  "hsl": {
    "h": 264.571,
    "s": 50.239,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43661,
    "c": 0.16237,
    "h": 298.2
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#5F349D
secondary
#9DBB72
accent
#DA4EA1
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F349D

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

Preview Lab → · Contrast checker → · Palette generator →

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