#582F82#582F82

#582F82 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.135 H 303.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#582F82
RGBrgb(88, 47, 130)
HSLhsl(270, 47%, 35%)
HSVhsv(270, 64%, 51%)
CMYKcmyk(32.3%, 63.8%, 0%, 49%)
CIE-LABlab(28.69, 35.84, -39.84)
CIE-LCHlch(28.69, 53.59, 311.97°)
OKLaboklab(40.07% 0.075 -0.1129)
OKLCHoklch(40.07% 0.135 303.6)
XYZxyz(9.0694, 5.7195, 21.7409)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582F82 #59822F
analogous
#2F2F82 #582F82 #822F82
triadic
#582F82 #82582F #2F8258
tetradic
#582F82 #822F2F #59822F #2F8282
square
#582F82 #822F2F #59822F #2F8282
split-complementary
#582F82 #82822F #2F822F
monochromatic
#1B0E28 #3A1F55 #582F82 #763FAF #9564C7

Accessibility & contrast

On white

9.80
#582F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#582F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582F82
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582F82#FFFFFF#000000##FFFFFF
##582F821.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#184480
Tritanopia (blue-blind)
#504054
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #582f82;
/* rgb */ color: rgb(88, 47, 130);
/* oklch */ color: oklch(40.1% 0.135 303.6);
Tailwind
colors: {
  custom: {
    50: '#8a6aa7',
    500: '#582f82',
    950: '#000000',
  },
}
SCSS
$custom: #582f82;
$custom-light: #8a6aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#582f82",
  "rgb": {
    "r": 88,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 269.639,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40071,
    "c": 0.13549,
    "h": 303.6
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#582F82
secondary
#87AE5F
accent
#D75195
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #582F82

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

Preview Lab → · Contrast checker → · Palette generator →

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