#5F1674#5F1674

#5F1674 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.156 H 317.2°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5F1674
RGBrgb(95, 22, 116)
HSLhsl(287, 68%, 27%)
HSVhsv(287, 81%, 45%)
CMYKcmyk(18.1%, 81%, 0%, 54.5%)
CIE-LABlab(24.54, 45.82, -37.62)
CIE-LCHlch(24.54, 59.29, 320.62°)
OKLaboklab(36.99% 0.1146 -0.1059)
OKLCHoklch(36.99% 0.156 317.2)
XYZxyz(8.1581, 4.2680, 16.9137)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1674 #2B7416
analogous
#301674 #5F1674 #74165A
triadic
#5F1674 #745F16 #16745F
tetradic
#5F1674 #743016 #2B7416 #165A74
square
#5F1674 #743016 #2B7416 #165A74
split-complementary
#5F1674 #5A7416 #167430
monochromatic
#15051A #350C41 #5F1674 #8920A7 #B12DD7

Accessibility & contrast

On white

11.33
#5F1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1674
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1674#FFFFFF#000000##FFFFFF
##5F16741.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#183C72
Tritanopia (blue-blind)
#5E2B45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1674;
/* rgb */ color: rgb(95, 22, 116);
/* oklch */ color: oklch(37.0% 0.156 317.2);
Tailwind
colors: {
  custom: {
    50: '#905d9d',
    500: '#5f1674',
    950: '#000000',
  },
}
SCSS
$custom: #5f1674;
$custom-light: #905d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1674",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 286.596,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36993,
    "c": 0.15606,
    "h": 317.2
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#5F1674
secondary
#55AA3C
accent
#EB3D64
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1674

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

Preview Lab → · Contrast checker → · Palette generator →

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