#5A1575#5A1575

#5A1575 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.156 H 314.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5A1575
RGBrgb(90, 21, 117)
HSLhsl(283, 70%, 27%)
HSVhsv(283, 82%, 46%)
CMYKcmyk(23.1%, 82.1%, 0%, 54.1%)
CIE-LABlab(23.65, 45.38, -39.73)
CIE-LCHlch(23.65, 60.31, 318.80°)
OKLaboklab(36.23% 0.1085 -0.1123)
OKLCHoklch(36.23% 0.156 314)
XYZxyz(7.6949, 3.9946, 17.1919)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1575 #307515
analogous
#2A1575 #5A1575 #751560
triadic
#5A1575 #755A15 #15755A
tetradic
#5A1575 #752A15 #307515 #156075
square
#5A1575 #752A15 #307515 #156075
split-complementary
#5A1575 #607515 #15752A
monochromatic
#14051A #320C41 #5A1575 #821EA9 #A82BD9

Accessibility & contrast

On white

11.67
#5A1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5A1575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1575
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1575#FFFFFF#000000##FFFFFF
##5A15751.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#0B3A73
Tritanopia (blue-blind)
#572C45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1575;
/* rgb */ color: rgb(90, 21, 117);
/* oklch */ color: oklch(36.2% 0.156 314.0);
Tailwind
colors: {
  custom: {
    50: '#8c5c9d',
    500: '#5a1575',
    950: '#000000',
  },
}
SCSS
$custom: #5a1575;
$custom-light: #8c5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1575",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 283.125,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36226,
    "c": 0.15617,
    "h": 314
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#5A1575
secondary
#5AAB3B
accent
#EC3B6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1575

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

Preview Lab → · Contrast checker → · Palette generator →

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