#5F3192#5F3192

#5F3192 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.153 H 302.0°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5F3192
RGBrgb(95, 49, 146)
HSLhsl(268, 50%, 38%)
HSVhsv(268, 66%, 57%)
CMYKcmyk(34.9%, 66.4%, 0%, 42.7%)
CIE-LABlab(31.13, 40.57, -45.79)
CIE-LCHlch(31.13, 61.17, 311.54°)
OKLaboklab(42.39% 0.0813 -0.1301)
OKLCHoklch(42.39% 0.153 302)
XYZxyz(11.0047, 6.7048, 27.9029)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3192 #649231
analogous
#313392 #5F3192 #8F3192
triadic
#5F3192 #925F31 #31925F
tetradic
#5F3192 #923133 #649231 #31928F
square
#5F3192 #923133 #649231 #31928F
split-complementary
#5F3192 #928F31 #339231
monochromatic
#231236 #412264 #5F3192 #7D41BF #9C6FCF

Accessibility & contrast

On white

8.97
#5F3192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5F3192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3192
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3192#FFFFFF#000000##FFFFFF
##5F31921.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004995
Deuteranopia (green-blind)
#0A4990
Tritanopia (blue-blind)
#55465D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f3192;
/* rgb */ color: rgb(95, 49, 146);
/* oklch */ color: oklch(42.4% 0.153 302.0);
Tailwind
colors: {
  custom: {
    50: '#906cb3',
    500: '#5f3192',
    950: '#000000',
  },
}
SCSS
$custom: #5f3192;
$custom-light: #906cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3192",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 146
  },
  "hsl": {
    "h": 268.454,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.15341,
    "h": 302
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#5F3192
secondary
#91B669
accent
#D94F97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F3192

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

Preview Lab → · Contrast checker → · Palette generator →

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