#5F2183#5F2183

#5F2183 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.158 H 309.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#5F2183
RGBrgb(95, 33, 131)
HSLhsl(278, 60%, 32%)
HSVhsv(278, 75%, 51%)
CMYKcmyk(27.5%, 74.8%, 0%, 48.6%)
CIE-LABlab(27.18, 44.75, -42.85)
CIE-LCHlch(27.18, 61.96, 316.24°)
OKLaboklab(39.22% 0.1013 -0.1214)
OKLCHoklch(39.22% 0.158 309.9)
XYZxyz(9.3591, 5.1595, 21.9712)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2183 #458321
analogous
#2E2183 #5F2183 #832176
triadic
#5F2183 #835F21 #21835F
tetradic
#5F2183 #832E21 #458321 #217683
square
#5F2183 #832E21 #458321 #217683
split-complementary
#5F2183 #768321 #21832E
monochromatic
#180821 #3C1552 #5F2183 #822DB4 #A14CD2

Accessibility & contrast

On white

10.34
#5F2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2183
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2183#FFFFFF#000000##FFFFFF
##5F21831.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#0B4181
Tritanopia (blue-blind)
#5A3750
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2183;
/* rgb */ color: rgb(95, 33, 131);
/* oklch */ color: oklch(39.2% 0.158 309.9);
Tailwind
colors: {
  custom: {
    50: '#9063a8',
    500: '#5f2183',
    950: '#000000',
  },
}
SCSS
$custom: #5f2183;
$custom-light: #9063a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2183",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 277.959,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3922,
    "c": 0.15813,
    "h": 309.9
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#5F2183
secondary
#72B54B
accent
#E3457F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F2183

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

Preview Lab → · Contrast checker → · Palette generator →

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