#582D9F#582D9F

#582D9F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.173 H 295.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#582D9F
RGBrgb(88, 45, 159)
HSLhsl(263, 56%, 40%)
HSVhsv(263, 72%, 62%)
CMYKcmyk(44.7%, 71.7%, 0%, 37.6%)
CIE-LABlab(30.53, 44.70, -54.72)
CIE-LCHlch(30.53, 70.66, 309.25°)
OKLaboklab(42.09% 0.0735 -0.1566)
OKLCHoklch(42.09% 0.173 295.2)
XYZxyz(11.2192, 6.4544, 33.4489)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582D9F #749F2D
analogous
#2D3B9F #582D9F #912D9F
triadic
#582D9F #9F582D #2D9F58
tetradic
#582D9F #9F2D3B #749F2D #2D9F91
square
#582D9F #9F2D3B #749F2D #2D9F91
split-complementary
#582D9F #9F912D #3B9F2D
monochromatic
#231240 #3E206F #582D9F #7440C9 #9770D6

Accessibility & contrast

On white

9.17
#582D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#582D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582D9F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582D9F#FFFFFF#000000##FFFFFF
##582D9F1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#444A63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #582d9f;
/* rgb */ color: rgb(88, 45, 159);
/* oklch */ color: oklch(42.1% 0.173 295.2);
Tailwind
colors: {
  custom: {
    50: '#8e6abc',
    500: '#582d9f',
    950: '#000000',
  },
}
SCSS
$custom: #582d9f;
$custom-light: #8e6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#582d9f",
  "rgb": {
    "r": 88,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 262.632,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.42093,
    "c": 0.17301,
    "h": 295.2
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#582D9F
secondary
#9EBE6A
accent
#DF49A6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #582D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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