#582170#582170

#582170 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.8% C 0.136 H 313.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#582170
RGBrgb(88, 33, 112)
HSLhsl(282, 54%, 28%)
HSVhsv(282, 71%, 44%)
CMYKcmyk(21.4%, 70.5%, 0%, 56.1%)
CIE-LABlab(24.74, 38.78, -34.78)
CIE-LCHlch(24.74, 52.09, 318.11°)
OKLaboklab(36.82% 0.0938 -0.0979)
OKLCHoklch(36.82% 0.136 313.8)
XYZxyz(7.4925, 4.3325, 15.7677)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582170 #397021
analogous
#302170 #582170 #702160
triadic
#582170 #705821 #217058
tetradic
#582170 #703021 #397021 #216070
square
#582170 #703021 #397021 #216070
split-complementary
#582170 #607021 #217030
monochromatic
#130718 #331341 #582170 #7D2F9F #A044C8

Accessibility & contrast

On white

11.25
#582170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#582170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582170
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582170#FFFFFF#000000##FFFFFF
##5821701.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#1D3C6E
Tritanopia (blue-blind)
#563145
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #582170;
/* rgb */ color: rgb(88, 33, 112);
/* oklch */ color: oklch(36.8% 0.136 313.8);
Tailwind
colors: {
  custom: {
    50: '#8a6199',
    500: '#582170',
    950: '#000000',
  },
}
SCSS
$custom: #582170;
$custom-light: #8a6199;
$custom-dark: #000000;
JSON
{
  "hex": "#582170",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 281.772,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36817,
    "c": 0.13564,
    "h": 313.8
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#582170
secondary
#65A449
accent
#DE4A77
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #582170

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

Preview Lab → · Contrast checker → · Palette generator →

#582170 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva