#582197#582197

#582197 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.178 H 299.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#582197
RGBrgb(88, 33, 151)
HSLhsl(268, 64%, 36%)
HSVhsv(268, 78%, 59%)
CMYKcmyk(41.7%, 78.1%, 0%, 40.8%)
CIE-LABlab(27.84, 48.29, -54.24)
CIE-LCHlch(27.84, 72.62, 311.68°)
OKLaboklab(39.98% 0.0866 -0.1551)
OKLCHoklch(39.98% 0.178 299.2)
XYZxyz(10.1529, 5.3967, 29.7789)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582197 #609721
analogous
#212597 #582197 #932197
triadic
#582197 #975821 #219758
tetradic
#582197 #972125 #609721 #219793
square
#582197 #972125 #609721 #219793
split-complementary
#582197 #979321 #259721
monochromatic
#1D0B33 #3B1665 #582197 #752CC9 #9558DA

Accessibility & contrast

On white

10.10
#582197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#582197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582197
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582197#FFFFFF#000000##FFFFFF
##5821971.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#49415B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #582197;
/* rgb */ color: rgb(88, 33, 151);
/* oklch */ color: oklch(40.0% 0.178 299.2);
Tailwind
colors: {
  custom: {
    50: '#8d63b7',
    500: '#582197',
    950: '#000000',
  },
}
SCSS
$custom: #582197;
$custom-light: #8d63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#582197",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 267.966,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39979,
    "c": 0.17764,
    "h": 299.2
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#582197
secondary
#8DBE55
accent
#E7419A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582197

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

Preview Lab → · Contrast checker → · Palette generator →

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