#5F349E#5F349E

#5F349E is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.7% C 0.164 H 297.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5F349E
RGBrgb(95, 52, 158)
HSLhsl(264, 50%, 41%)
HSVhsv(264, 67%, 62%)
CMYKcmyk(39.9%, 67.1%, 0%, 38%)
CIE-LABlab(32.61, 42.14, -50.70)
CIE-LCHlch(32.61, 65.93, 309.73°)
OKLaboklab(43.74% 0.0765 -0.1446)
OKLCHoklch(43.74% 0.164 297.9)
XYZxyz(12.1173, 7.3573, 33.1228)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F349E #739E34
analogous
#343E9E #5F349E #94349E
triadic
#5F349E #9E5F34 #349E5F
tetradic
#5F349E #9E343E #739E34 #349E94
square
#5F349E #9E343E #739E34 #349E94
split-complementary
#5F349E #9E9434 #3E9E34
monochromatic
#281642 #432570 #5F349E #7C4BC4 #9E79D3

Accessibility & contrast

On white

8.50
#5F349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F349E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F349E
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F349E#FFFFFF#000000##FFFFFF
##5F349E1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#504D64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f349e;
/* rgb */ color: rgb(95, 52, 158);
/* oklch */ color: oklch(43.7% 0.164 297.9);
Tailwind
colors: {
  custom: {
    50: '#916ebb',
    500: '#5f349e',
    950: '#000000',
  },
}
SCSS
$custom: #5f349e;
$custom-light: #916ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f349e",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 264.34,
    "s": 50.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4374,
    "c": 0.16357,
    "h": 297.9
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F349E

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

Preview Lab → · Contrast checker → · Palette generator →

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