#5D1275#5D1275

#5D1275 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.160 H 316.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5D1275
RGBrgb(93, 18, 117)
HSLhsl(285, 73%, 26%)
HSVhsv(285, 85%, 46%)
CMYKcmyk(20.5%, 84.6%, 0%, 54.1%)
CIE-LABlab(23.82, 46.95, -39.44)
CIE-LCHlch(23.82, 61.32, 319.97°)
OKLaboklab(36.44% 0.1151 -0.1113)
OKLCHoklch(36.44% 0.16 316)
XYZxyz(7.9409, 4.0444, 17.1885)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1275 #2A7512
analogous
#2C1275 #5D1275 #75125C
triadic
#5D1275 #755D12 #12755D
tetradic
#5D1275 #752C12 #2A7512 #125C75
square
#5D1275 #752C12 #2A7512 #125C75
split-complementary
#5D1275 #5C7512 #12752C
monochromatic
#15041B #330A40 #5D1275 #871AAA #B024DD

Accessibility & contrast

On white

11.61
#5D1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5D1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1275
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1275#FFFFFF#000000##FFFFFF
##5D12751.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#0F3B73
Tritanopia (blue-blind)
#5B2A45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1275;
/* rgb */ color: rgb(93, 18, 117);
/* oklch */ color: oklch(36.4% 0.160 316.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b9d',
    500: '#5d1275',
    950: '#000000',
  },
}
SCSS
$custom: #5d1275;
$custom-light: #8f5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1275",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 285.455,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36443,
    "c": 0.16013,
    "h": 316
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#5D1275
secondary
#53AC37
accent
#F03864
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1275

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

Preview Lab → · Contrast checker → · Palette generator →

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