#5F359D#5F359D

#5F359D is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.161 H 298.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5F359D
RGBrgb(95, 53, 157)
HSLhsl(264, 50%, 41%)
HSVhsv(264, 66%, 62%)
CMYKcmyk(39.5%, 66.2%, 0%, 38.4%)
CIE-LABlab(32.73, 41.32, -49.90)
CIE-LCHlch(32.73, 64.79, 309.63°)
OKLaboklab(43.8% 0.0755 -0.1422)
OKLCHoklch(43.8% 0.161 298)
XYZxyz(12.0767, 7.4132, 32.6864)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F359D #739D35
analogous
#353F9D #5F359D #93359D
triadic
#5F359D #9D5F35 #359D5F
tetradic
#5F359D #9D353F #739D35 #359D93
square
#5F359D #9D353F #739D35 #359D93
split-complementary
#5F359D #9D9335 #3F9D35
monochromatic
#281641 #43266F #5F359D #7C4CC3 #9E7AD2

Accessibility & contrast

On white

8.46
#5F359D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5F359D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F359D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F359D#FFFFFF#000000##FFFFFF
##5F359D1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f359d;
/* rgb */ color: rgb(95, 53, 157);
/* oklch */ color: oklch(43.8% 0.161 298.0);
Tailwind
colors: {
  custom: {
    50: '#916fbb',
    500: '#5f359d',
    950: '#000000',
  },
}
SCSS
$custom: #5f359d;
$custom-light: #916fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f359d",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 157
  },
  "hsl": {
    "h": 264.231,
    "s": 49.524,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43804,
    "c": 0.161,
    "h": 298
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#5F359D
secondary
#9EBB73
accent
#D94FA1
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F359D

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

Preview Lab → · Contrast checker → · Palette generator →

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