#5F1783#5F1783

#5F1783 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.3% C 0.169 H 310.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5F1783
RGBrgb(95, 23, 131)
HSLhsl(280, 70%, 30%)
HSVhsv(280, 82%, 51%)
CMYKcmyk(27.5%, 82.4%, 0%, 48.6%)
CIE-LABlab(25.82, 48.68, -45.07)
CIE-LCHlch(25.82, 66.34, 317.20°)
OKLaboklab(38.26% 0.1107 -0.1278)
OKLCHoklch(38.26% 0.169 310.9)
XYZxyz(9.1217, 4.6846, 21.8920)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1783 #3B8317
analogous
#291783 #5F1783 #831771
triadic
#5F1783 #835F17 #17835F
tetradic
#5F1783 #832917 #3B8317 #177183
square
#5F1783 #832917 #3B8317 #177183
split-complementary
#5F1783 #718317 #178329
monochromatic
#13051B #390E4F #5F1783 #8520B7 #A638DC

Accessibility & contrast

On white

10.84
#5F1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1783
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1783#FFFFFF#000000##FFFFFF
##5F17831.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#5A334E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1783;
/* rgb */ color: rgb(95, 23, 131);
/* oklch */ color: oklch(38.3% 0.169 310.9);
Tailwind
colors: {
  custom: {
    50: '#915ea8',
    500: '#5f1783',
    950: '#000000',
  },
}
SCSS
$custom: #5f1783;
$custom-light: #915ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1783",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 280,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38256,
    "c": 0.16909,
    "h": 310.9
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#5F1783
secondary
#67B73F
accent
#ED3B76
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1783

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

Preview Lab → · Contrast checker → · Palette generator →

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