#5F358E#5F358E

#5F358E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.143 H 302.5°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5F358E
RGBrgb(95, 53, 142)
HSLhsl(268, 46%, 38%)
HSVhsv(268, 63%, 56%)
CMYKcmyk(33.1%, 62.7%, 0%, 44.3%)
CIE-LABlab(31.65, 37.33, -42.48)
CIE-LCHlch(31.65, 56.55, 311.31°)
OKLaboklab(42.68% 0.0767 -0.1204)
OKLCHoklch(42.68% 0.143 302.5)
XYZxyz(10.8738, 6.9321, 26.3511)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F358E #648E35
analogous
#35378E #5F358E #8B358E
triadic
#5F358E #8E5F35 #358E5F
tetradic
#5F358E #8E3537 #648E35 #358E8B
square
#5F358E #8E3537 #648E35 #358E8B
split-complementary
#5F358E #8E8B35 #378E35
monochromatic
#231435 #412461 #5F358E #7D46BA #9C73CB

Accessibility & contrast

On white

8.80
#5F358E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F358E
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F358E#FFFFFF#000000##FFFFFF
##5F358E1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#1B4A8C
Tritanopia (blue-blind)
#56485C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f358e;
/* rgb */ color: rgb(95, 53, 142);
/* oklch */ color: oklch(42.7% 0.143 302.5);
Tailwind
colors: {
  custom: {
    50: '#906eb0',
    500: '#5f358e',
    950: '#000000',
  },
}
SCSS
$custom: #5f358e;
$custom-light: #906eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f358e",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 142
  },
  "hsl": {
    "h": 268.315,
    "s": 45.641,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42682,
    "c": 0.14272,
    "h": 302.5
  },
  "luminance": 0.06932
}

Semantic roles & 50–950 ramp

primary
#5F358E
secondary
#91B36C
accent
#D55298
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F358E

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

Preview Lab → · Contrast checker → · Palette generator →

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