#5F2575#5F2575

#5F2575 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.7% C 0.138 H 315.3°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5F2575
RGBrgb(95, 37, 117)
HSLhsl(284, 52%, 30%)
HSVhsv(284, 68%, 46%)
CMYKcmyk(18.8%, 68.4%, 0%, 54.1%)
CIE-LABlab(26.85, 39.69, -34.54)
CIE-LCHlch(26.85, 52.62, 318.97°)
OKLaboklab(38.66% 0.0982 -0.097)
OKLCHoklch(38.66% 0.138 315.3)
XYZxyz(8.5913, 5.0407, 17.3466)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2575 #3B7525
analogous
#372575 #5F2575 #752563
triadic
#5F2575 #755F25 #25755F
tetradic
#5F2575 #753725 #3B7525 #256375
square
#5F2575 #753725 #3B7525 #256375
split-complementary
#5F2575 #637525 #257537
monochromatic
#130818 #391647 #5F2575 #8534A3 #A64EC7

Accessibility & contrast

On white

10.46
#5F2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2575
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2575#FFFFFF#000000##FFFFFF
##5F25751.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023C77
Deuteranopia (green-blind)
#244173
Tritanopia (blue-blind)
#5D3449
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f2575;
/* rgb */ color: rgb(95, 37, 117);
/* oklch */ color: oklch(38.7% 0.138 315.3);
Tailwind
colors: {
  custom: {
    50: '#8f649d',
    500: '#5f2575',
    950: '#000000',
  },
}
SCSS
$custom: #5f2575;
$custom-light: #8f649d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2575",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 283.5,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38664,
    "c": 0.13807,
    "h": 315.3
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#5F2575
secondary
#67A84E
accent
#DB4C74
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #5F2575

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

Preview Lab → · Contrast checker → · Palette generator →

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