#5F358F#5F358F

#5F358F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.144 H 302.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5F358F
RGBrgb(95, 53, 143)
HSLhsl(268, 46%, 38%)
HSVhsv(268, 63%, 56%)
CMYKcmyk(33.6%, 62.9%, 0%, 43.9%)
CIE-LABlab(31.72, 37.59, -42.98)
CIE-LCHlch(31.72, 57.10, 311.17°)
OKLaboklab(42.75% 0.0766 -0.1219)
OKLCHoklch(42.75% 0.144 302.2)
XYZxyz(10.9492, 6.9622, 26.7483)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F358F #658F35
analogous
#35388F #5F358F #8C358F
triadic
#5F358F #8F5F35 #358F5F
tetradic
#5F358F #8F3538 #658F35 #358F8C
square
#5F358F #8F3538 #658F35 #358F8C
split-complementary
#5F358F #8F8C35 #388F35
monochromatic
#241436 #412462 #5F358F #7D47BB #9C73CB

Accessibility & contrast

On white

8.78
#5F358F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F358F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F358F
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F358F#FFFFFF#000000##FFFFFF
##5F358F1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#1A4A8D
Tritanopia (blue-blind)
#55485D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f358f;
/* rgb */ color: rgb(95, 53, 143);
/* oklch */ color: oklch(42.8% 0.144 302.2);
Tailwind
colors: {
  custom: {
    50: '#906eb0',
    500: '#5f358f',
    950: '#000000',
  },
}
SCSS
$custom: #5f358f;
$custom-light: #906eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f358f",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 143
  },
  "hsl": {
    "h": 268,
    "s": 45.918,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.14394,
    "h": 302.2
  },
  "luminance": 0.06962
}

Semantic roles & 50–950 ramp

primary
#5F358F
secondary
#92B46C
accent
#D65298
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F358F

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

Preview Lab → · Contrast checker → · Palette generator →

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