#5F3293#5F3293

#5F3293 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.153 H 301.5°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5F3293
RGBrgb(95, 50, 147)
HSLhsl(268, 49%, 39%)
HSVhsv(268, 66%, 58%)
CMYKcmyk(35.4%, 66%, 0%, 42.4%)
CIE-LABlab(31.39, 40.29, -45.96)
CIE-LCHlch(31.39, 61.12, 311.24°)
OKLaboklab(42.61% 0.08 -0.1306)
OKLCHoklch(42.61% 0.153 301.5)
XYZxyz(11.1251, 6.8206, 28.3285)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3293 #669332
analogous
#323593 #5F3293 #8F3293
triadic
#5F3293 #935F32 #32935F
tetradic
#5F3293 #933235 #669332 #32938F
square
#5F3293 #933235 #669332 #32938F
split-complementary
#5F3293 #938F32 #359332
monochromatic
#241338 #412265 #5F3293 #7D43BF #9C71CF

Accessibility & contrast

On white

8.88
#5F3293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F3293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3293
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3293#FFFFFF#000000##FFFFFF
##5F32931.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004996
Deuteranopia (green-blind)
#0A4991
Tritanopia (blue-blind)
#54475E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f3293;
/* rgb */ color: rgb(95, 50, 147);
/* oklch */ color: oklch(42.6% 0.153 301.5);
Tailwind
colors: {
  custom: {
    50: '#916db3',
    500: '#5f3293',
    950: '#000000',
  },
}
SCSS
$custom: #5f3293;
$custom-light: #916db3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3293",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 147
  },
  "hsl": {
    "h": 267.835,
    "s": 49.239,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42608,
    "c": 0.15318,
    "h": 301.5
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#5F3293
secondary
#93B76A
accent
#D94F99
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F3293

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

Preview Lab → · Contrast checker → · Palette generator →

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