#582797#582797

#582797 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.171 H 298.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#582797
RGBrgb(88, 39, 151)
HSLhsl(266, 59%, 37%)
HSVhsv(266, 74%, 59%)
CMYKcmyk(41.7%, 74.2%, 0%, 40.8%)
CIE-LABlab(28.80, 45.55, -52.67)
CIE-LCHlch(28.80, 69.63, 310.85°)
OKLaboklab(40.66% 0.0811 -0.1505)
OKLCHoklch(40.66% 0.171 298.3)
XYZxyz(10.3345, 5.7600, 29.8395)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582797 #669727
analogous
#272E97 #582797 #902797
triadic
#582797 #975827 #279758
tetradic
#582797 #97272E #669727 #279790
square
#582797 #97272E #669727 #279790
split-complementary
#582797 #979027 #2E9727
monochromatic
#1F0E36 #3C1A66 #582797 #7434C8 #9562D6

Accessibility & contrast

On white

9.76
#582797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#582797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582797
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582797#FFFFFF#000000##FFFFFF
##5827971.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#48435D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #582797;
/* rgb */ color: rgb(88, 39, 151);
/* oklch */ color: oklch(40.7% 0.171 298.3);
Tailwind
colors: {
  custom: {
    50: '#8d66b6',
    500: '#582797',
    950: '#000000',
  },
}
SCSS
$custom: #582797;
$custom-light: #8d66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#582797",
  "rgb": {
    "r": 88,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 266.25,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.17099,
    "h": 298.3
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#582797
secondary
#93BC5E
accent
#E2469E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582797

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

Preview Lab → · Contrast checker → · Palette generator →

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