#5F1975#5F1975

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

Color values

HEX#5F1975
RGBrgb(95, 25, 117)
HSLhsl(286, 65%, 28%)
HSVhsv(286, 79%, 46%)
CMYKcmyk(18.8%, 78.6%, 0%, 54.1%)
CIE-LABlab(24.99, 44.94, -37.53)
CIE-LCHlch(24.99, 58.54, 320.13°)
OKLaboklab(37.34% 0.1116 -0.1057)
OKLCHoklch(37.34% 0.154 316.6)
XYZxyz(8.2773, 4.4129, 17.2419)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1975 #2F7519
analogous
#311975 #5F1975 #75195D
triadic
#5F1975 #755F19 #19755F
tetradic
#5F1975 #753119 #2F7519 #195D75
square
#5F1975 #753119 #2F7519 #195D75
split-complementary
#5F1975 #5D7519 #197531
monochromatic
#140519 #360E43 #5F1975 #8824A7 #AE35D4

Accessibility & contrast

On white

11.15
#5F1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F1975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1975
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1975#FFFFFF#000000##FFFFFF
##5F19751.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1975;
/* rgb */ color: rgb(95, 25, 117);
/* oklch */ color: oklch(37.3% 0.154 316.6);
Tailwind
colors: {
  custom: {
    50: '#905e9d',
    500: '#5f1975',
    950: '#000000',
  },
}
SCSS
$custom: #5f1975;
$custom-light: #905e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1975",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 285.652,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37337,
    "c": 0.15373,
    "h": 316.6
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#5F1975
secondary
#59AA40
accent
#E84068
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1975

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

Preview Lab → · Contrast checker → · Palette generator →

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