#5F1874#5F1874

#5F1874 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.154 H 317.1°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5F1874
RGBrgb(95, 24, 116)
HSLhsl(286, 66%, 27%)
HSVhsv(286, 79%, 45%)
CMYKcmyk(18.1%, 79.3%, 0%, 54.5%)
CIE-LABlab(24.79, 45.10, -37.21)
CIE-LCHlch(24.79, 58.47, 320.47°)
OKLaboklab(37.17% 0.1127 -0.1048)
OKLCHoklch(37.17% 0.154 317.1)
XYZxyz(8.1979, 4.3475, 16.9269)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1874 #2D7418
analogous
#311874 #5F1874 #74185B
triadic
#5F1874 #745F18 #18745F
tetradic
#5F1874 #743118 #2D7418 #185B74
square
#5F1874 #743118 #2D7418 #185B74
split-complementary
#5F1874 #5B7418 #187431
monochromatic
#150519 #350E41 #5F1874 #8922A7 #AF32D5

Accessibility & contrast

On white

11.23
#5F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1874
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1874#FFFFFF#000000##FFFFFF
##5F18741.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#1A3D72
Tritanopia (blue-blind)
#5E2C45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1874;
/* rgb */ color: rgb(95, 24, 116);
/* oklch */ color: oklch(37.2% 0.154 317.1);
Tailwind
colors: {
  custom: {
    50: '#905e9d',
    500: '#5f1874',
    950: '#000000',
  },
}
SCSS
$custom: #5f1874;
$custom-light: #905e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1874",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 286.304,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3717,
    "c": 0.15391,
    "h": 317.1
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#5F1874
secondary
#57A93F
accent
#E93F66
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1874

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

Preview Lab → · Contrast checker → · Palette generator →

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