#582D7E#582D7E

#582D7E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.134 H 305.6°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#582D7E
RGBrgb(88, 45, 126)
HSLhsl(272, 47%, 34%)
HSVhsv(272, 64%, 49%)
CMYKcmyk(30.2%, 64.3%, 0%, 50.6%)
CIE-LABlab(28.00, 35.92, -38.44)
CIE-LCHlch(28.00, 52.61, 313.05°)
OKLaboklab(39.48% 0.0777 -0.1087)
OKLCHoklch(39.48% 0.134 305.6)
XYZxyz(8.7280, 5.4579, 20.3283)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582D7E #537E2D
analogous
#2F2D7E #582D7E #7E2D7B
triadic
#582D7E #7E582D #2D7E58
tetradic
#582D7E #7E2F2D #537E2D #2D7B7E
square
#582D7E #7E2F2D #537E2D #2D7B7E
split-complementary
#582D7E #7B7E2D #2D7E2F
monochromatic
#190D24 #391D51 #582D7E #773DAB #965FC6

Accessibility & contrast

On white

10.04
#582D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#582D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582D7E
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582D7E#FFFFFF#000000##FFFFFF
##582D7E1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#1B427C
Tritanopia (blue-blind)
#513E51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #582d7e;
/* rgb */ color: rgb(88, 45, 126);
/* oklch */ color: oklch(39.5% 0.134 305.6);
Tailwind
colors: {
  custom: {
    50: '#8a68a4',
    500: '#582d7e',
    950: '#000000',
  },
}
SCSS
$custom: #582d7e;
$custom-light: #8a68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#582d7e",
  "rgb": {
    "r": 88,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 271.852,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3948,
    "c": 0.13368,
    "h": 305.6
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#582D7E
secondary
#81AC5A
accent
#D75190
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #582D7E

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

Preview Lab → · Contrast checker → · Palette generator →

#582D7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva