#582271#582271

#582271 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.0% C 0.135 H 313.2°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#582271
RGBrgb(88, 34, 113)
HSLhsl(281, 54%, 29%)
HSVhsv(281, 70%, 44%)
CMYKcmyk(22.1%, 69.9%, 0%, 55.7%)
CIE-LABlab(24.99, 38.52, -35.03)
CIE-LCHlch(24.99, 52.07, 317.72°)
OKLaboklab(37.02% 0.0925 -0.0987)
OKLCHoklch(37.02% 0.135 313.2)
XYZxyz(7.5766, 4.4112, 16.0719)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582271 #3B7122
analogous
#312271 #582271 #712263
triadic
#582271 #715822 #227158
tetradic
#582271 #713122 #3B7122 #226371
square
#582271 #713122 #3B7122 #226371
split-complementary
#582271 #637122 #227131
monochromatic
#120718 #331442 #582271 #7D30A0 #9E46C7

Accessibility & contrast

On white

11.16
#582271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#582271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582271
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582271#FFFFFF#000000##FFFFFF
##5822711.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#1D3C6F
Tritanopia (blue-blind)
#553246
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #582271;
/* rgb */ color: rgb(88, 34, 113);
/* oklch */ color: oklch(37.0% 0.135 313.2);
Tailwind
colors: {
  custom: {
    50: '#8a629a',
    500: '#582271',
    950: '#000000',
  },
}
SCSS
$custom: #582271;
$custom-light: #8a629a;
$custom-dark: #000000;
JSON
{
  "hex": "#582271",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 281.013,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37015,
    "c": 0.13528,
    "h": 313.2
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#582271
secondary
#67A44A
accent
#DD4B79
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #582271

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

Preview Lab → · Contrast checker → · Palette generator →

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