#5F1875#5F1875

#5F1875 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.2% C 0.155 H 316.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5F1875
RGBrgb(95, 24, 117)
HSLhsl(286, 66%, 28%)
HSVhsv(286, 79%, 46%)
CMYKcmyk(18.8%, 79.5%, 0%, 54.1%)
CIE-LABlab(24.86, 45.31, -37.74)
CIE-LCHlch(24.86, 58.97, 320.21°)
OKLaboklab(37.24% 0.1126 -0.1063)
OKLCHoklch(37.24% 0.155 316.6)
XYZxyz(8.2563, 4.3709, 17.2349)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1875 #2E7518
analogous
#301875 #5F1875 #75185D
triadic
#5F1875 #755F18 #18755F
tetradic
#5F1875 #753018 #2E7518 #185D75
square
#5F1875 #753018 #2E7518 #185D75
split-complementary
#5F1875 #5D7518 #187530
monochromatic
#150519 #360E42 #5F1875 #8822A8 #AF32D5

Accessibility & contrast

On white

11.20
#5F1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1875
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1875#FFFFFF#000000##FFFFFF
##5F18751.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#183D73
Tritanopia (blue-blind)
#5E2D46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1875;
/* rgb */ color: rgb(95, 24, 117);
/* oklch */ color: oklch(37.2% 0.155 316.6);
Tailwind
colors: {
  custom: {
    50: '#905e9d',
    500: '#5f1875',
    950: '#000000',
  },
}
SCSS
$custom: #5f1875;
$custom-light: #905e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1875",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 285.806,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37245,
    "c": 0.15484,
    "h": 316.6
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#5F1875
secondary
#58AA3F
accent
#E93F67
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1875

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

Preview Lab → · Contrast checker → · Palette generator →

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