#5F337D#5F337D

#5F337D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.2% C 0.125 H 309.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5F337D
RGBrgb(95, 51, 125)
HSLhsl(276, 42%, 35%)
HSVhsv(276, 59%, 49%)
CMYKcmyk(24%, 59.2%, 0%, 51%)
CIE-LABlab(30.11, 34.13, -34.38)
CIE-LCHlch(30.11, 48.45, 314.79°)
OKLaboklab(41.2% 0.0794 -0.0966)
OKLCHoklch(41.2% 0.125 309.4)
XYZxyz(9.6041, 6.2814, 20.1045)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F337D #517D33
analogous
#3A337D #5F337D #7D3376
triadic
#5F337D #7D5F33 #337D5F
tetradic
#5F337D #7D3A33 #517D33 #33767D
square
#5F337D #7D3A33 #517D33 #33767D
split-complementary
#5F337D #767D33 #337D3A
monochromatic
#1D1026 #3E2152 #5F337D #8045A8 #9E69C2

Accessibility & contrast

On white

9.31
#5F337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F337D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F337D#FFFFFF#000000##FFFFFF
##5F337D1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457F
Deuteranopia (green-blind)
#2B487B
Tritanopia (blue-blind)
#5B4153
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f337d;
/* rgb */ color: rgb(95, 51, 125);
/* oklch */ color: oklch(41.2% 0.125 309.4);
Tailwind
colors: {
  custom: {
    50: '#8f6da3',
    500: '#5f337d',
    950: '#000000',
  },
}
SCSS
$custom: #5f337d;
$custom-light: #8f6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f337d",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 275.676,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41199,
    "c": 0.12509,
    "h": 309.4
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#5F337D
secondary
#7FAA62
accent
#D25688
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5F337D

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

Preview Lab → · Contrast checker → · Palette generator →

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