#5F358D#5F358D

#5F358D is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.6% C 0.141 H 302.8°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5F358D
RGBrgb(95, 53, 141)
HSLhsl(269, 45%, 38%)
HSVhsv(269, 62%, 55%)
CMYKcmyk(32.6%, 62.4%, 0%, 44.7%)
CIE-LABlab(31.58, 37.07, -41.97)
CIE-LCHlch(31.58, 56.00, 311.45°)
OKLaboklab(42.61% 0.0767 -0.1189)
OKLCHoklch(42.61% 0.141 302.8)
XYZxyz(10.7990, 6.9022, 25.9575)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F358D #638D35
analogous
#35378D #5F358D #8B358D
triadic
#5F358D #8D5F35 #358D5F
tetradic
#5F358D #8D3537 #638D35 #358D8B
square
#5F358D #8D3537 #638D35 #358D8B
split-complementary
#5F358D #8D8B35 #378D35
monochromatic
#231434 #412461 #5F358D #7D46B9 #9C72CA

Accessibility & contrast

On white

8.82
#5F358D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F358D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F358D
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F358D#FFFFFF#000000##FFFFFF
##5F358D1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014990
Deuteranopia (green-blind)
#1D4A8B
Tritanopia (blue-blind)
#56475C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f358d;
/* rgb */ color: rgb(95, 53, 141);
/* oklch */ color: oklch(42.6% 0.141 302.8);
Tailwind
colors: {
  custom: {
    50: '#906eaf',
    500: '#5f358d',
    950: '#000000',
  },
}
SCSS
$custom: #5f358d;
$custom-light: #906eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f358d",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 141
  },
  "hsl": {
    "h": 268.636,
    "s": 45.361,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4261,
    "c": 0.14149,
    "h": 302.8
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#5F358D
secondary
#91B26B
accent
#D55397
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F358D

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

Preview Lab → · Contrast checker → · Palette generator →

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