#5F1673#5F1673

#5F1673 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.155 H 317.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5F1673
RGBrgb(95, 22, 115)
HSLhsl(287, 68%, 27%)
HSVhsv(287, 81%, 45%)
CMYKcmyk(17.4%, 80.9%, 0%, 54.9%)
CIE-LABlab(24.47, 45.62, -37.09)
CIE-LCHlch(24.47, 58.80, 320.88°)
OKLaboklab(36.92% 0.1148 -0.1044)
OKLCHoklch(36.92% 0.155 317.7)
XYZxyz(8.1003, 4.2449, 16.6090)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1673 #2A7316
analogous
#311673 #5F1673 #731659
triadic
#5F1673 #735F16 #16735F
tetradic
#5F1673 #733116 #2A7316 #165973
square
#5F1673 #733116 #2A7316 #165973
split-complementary
#5F1673 #597316 #167331
monochromatic
#15051A #350C40 #5F1673 #8920A6 #B22DD7

Accessibility & contrast

On white

11.36
#5F1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1673
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1673#FFFFFF#000000##FFFFFF
##5F16731.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#193C71
Tritanopia (blue-blind)
#5E2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1673;
/* rgb */ color: rgb(95, 22, 115);
/* oklch */ color: oklch(36.9% 0.155 317.7);
Tailwind
colors: {
  custom: {
    50: '#905d9c',
    500: '#5f1673',
    950: '#000000',
  },
}
SCSS
$custom: #5f1673;
$custom-light: #905d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1673",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 287.097,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36918,
    "c": 0.15514,
    "h": 317.7
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#5F1673
secondary
#53A93C
accent
#EB3D62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1673

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

Preview Lab → · Contrast checker → · Palette generator →

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