#5F2193#5F2193

#5F2193 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.175 H 304.2°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5F2193
RGBrgb(95, 33, 147)
HSLhsl(273, 63%, 35%)
HSVhsv(273, 78%, 58%)
CMYKcmyk(35.4%, 77.6%, 0%, 42.4%)
CIE-LABlab(28.45, 48.53, -50.74)
CIE-LCHlch(28.45, 70.21, 313.72°)
OKLaboklab(40.51% 0.0981 -0.1446)
OKLCHoklch(40.51% 0.175 304.2)
XYZxyz(10.5284, 5.6272, 28.1296)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2193 #559321
analogous
#262193 #5F2193 #93218E
triadic
#5F2193 #935F21 #21935F
tetradic
#5F2193 #932621 #559321 #218E93
square
#5F2193 #932621 #559321 #218E93
split-complementary
#5F2193 #8E9321 #219326
monochromatic
#1E0B2F #3F1661 #5F2193 #7F2CC5 #9D55D9

Accessibility & contrast

On white

9.88
#5F2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2193
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2193#FFFFFF#000000##FFFFFF
##5F21931.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004391
Tritanopia (blue-blind)
#553E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2193;
/* rgb */ color: rgb(95, 33, 147);
/* oklch */ color: oklch(40.5% 0.175 304.2);
Tailwind
colors: {
  custom: {
    50: '#9263b4',
    500: '#5f2193',
    950: '#000000',
  },
}
SCSS
$custom: #5f2193;
$custom-light: #9263b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2193",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 272.632,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40512,
    "c": 0.17469,
    "h": 304.2
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#5F2193
secondary
#83BD53
accent
#E6418D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2193

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

Preview Lab → · Contrast checker → · Palette generator →

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