#582198#582198

#582198 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.179 H 298.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#582198
RGBrgb(88, 33, 152)
HSLhsl(268, 64%, 36%)
HSVhsv(268, 78%, 60%)
CMYKcmyk(42.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(27.92, 48.54, -54.71)
CIE-LCHlch(27.92, 73.14, 311.58°)
OKLaboklab(40.07% 0.0863 -0.1565)
OKLCHoklch(40.07% 0.179 298.9)
XYZxyz(10.2344, 5.4293, 30.2084)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582198 #619821
analogous
#212698 #582198 #942198
triadic
#582198 #985821 #219858
tetradic
#582198 #982126 #619821 #219894
square
#582198 #982126 #619821 #219894
split-complementary
#582198 #989421 #269821
monochromatic
#1E0B33 #3B1666 #582198 #752CCA #9559DB

Accessibility & contrast

On white

10.07
#582198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#582198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582198
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582198#FFFFFF#000000##FFFFFF
##5821981.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#48415C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #582198;
/* rgb */ color: rgb(88, 33, 152);
/* oklch */ color: oklch(40.1% 0.179 298.9);
Tailwind
colors: {
  custom: {
    50: '#8e63b7',
    500: '#582198',
    950: '#000000',
  },
}
SCSS
$custom: #582198;
$custom-light: #8e63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#582198",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 267.731,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40068,
    "c": 0.17871,
    "h": 298.9
  },
  "luminance": 0.05429
}

Semantic roles & 50–950 ramp

primary
#582198
secondary
#8EBF56
accent
#E7409A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582198

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

Preview Lab → · Contrast checker → · Palette generator →

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