#582188#582188

#582188 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.162 H 304.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#582188
RGBrgb(88, 33, 136)
HSLhsl(272, 61%, 33%)
HSVhsv(272, 76%, 53%)
CMYKcmyk(35.3%, 75.7%, 0%, 46.7%)
CIE-LABlab(26.56, 44.53, -47.04)
CIE-LCHlch(26.56, 64.77, 313.43°)
OKLaboklab(38.69% 0.0903 -0.1339)
OKLCHoklch(38.69% 0.162 304)
XYZxyz(9.0113, 4.9400, 23.7666)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582188 #518821
analogous
#242188 #582188 #882184
triadic
#582188 #885821 #218858
tetradic
#582188 #882421 #518821 #218488
square
#582188 #882421 #518821 #218488
split-complementary
#582188 #848821 #218824
monochromatic
#180925 #381557 #582188 #782DB9 #964FD4

Accessibility & contrast

On white

10.56
#582188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#582188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582188
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582188#FFFFFF#000000##FFFFFF
##5821881.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#4F3A53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #582188;
/* rgb */ color: rgb(88, 33, 136);
/* oklch */ color: oklch(38.7% 0.162 304.0);
Tailwind
colors: {
  custom: {
    50: '#8c62ab',
    500: '#582188',
    950: '#000000',
  },
}
SCSS
$custom: #582188;
$custom-light: #8c62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#582188",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 272.039,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38689,
    "c": 0.16151,
    "h": 304
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#582188
secondary
#7FB84D
accent
#E4448E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #582188

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

Preview Lab → · Contrast checker → · Palette generator →

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