#5F349A#5F349A

#5F349A is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.4% C 0.159 H 299.0°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5F349A
RGBrgb(95, 52, 154)
HSLhsl(265, 50%, 40%)
HSVhsv(265, 66%, 60%)
CMYKcmyk(38.3%, 66.2%, 0%, 39.6%)
CIE-LABlab(32.31, 41.06, -48.76)
CIE-LCHlch(32.31, 63.75, 310.10°)
OKLaboklab(43.43% 0.077 -0.1389)
OKLCHoklch(43.43% 0.159 299)
XYZxyz(11.7786, 7.2218, 31.3390)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F349A #6F9A34
analogous
#343C9A #5F349A #92349A
triadic
#5F349A #9A5F34 #349A5F
tetradic
#5F349A #9A343C #6F9A34 #349A92
square
#5F349A #9A343C #6F9A34 #349A92
split-complementary
#5F349A #9A9234 #3C9A34
monochromatic
#27153E #43256C #5F349A #7C49C2 #9D77D1

Accessibility & contrast

On white

8.59
#5F349A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F349A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F349A
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F349A#FFFFFF#000000##FFFFFF
##5F349A1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#004B98
Tritanopia (blue-blind)
#514B62
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f349a;
/* rgb */ color: rgb(95, 52, 154);
/* oklch */ color: oklch(43.4% 0.159 299.0);
Tailwind
colors: {
  custom: {
    50: '#916eb8',
    500: '#5f349a',
    950: '#000000',
  },
}
SCSS
$custom: #5f349a;
$custom-light: #916eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f349a",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 154
  },
  "hsl": {
    "h": 265.294,
    "s": 49.515,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43429,
    "c": 0.15877,
    "h": 299
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#5F349A
secondary
#9BBA70
accent
#D94F9F
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F349A

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

Preview Lab → · Contrast checker → · Palette generator →

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