#582187#582187

#582187 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.160 H 304.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#582187
RGBrgb(88, 33, 135)
HSLhsl(272, 61%, 33%)
HSVhsv(272, 76%, 53%)
CMYKcmyk(34.8%, 75.6%, 0%, 47.1%)
CIE-LABlab(26.48, 44.28, -46.54)
CIE-LCHlch(26.48, 64.24, 313.57°)
OKLaboklab(38.61% 0.0905 -0.1325)
OKLCHoklch(38.61% 0.16 304.3)
XYZxyz(8.9405, 4.9117, 23.3940)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582187 #508721
analogous
#252187 #582187 #872183
triadic
#582187 #875821 #218758
tetradic
#582187 #872521 #508721 #218387
square
#582187 #872521 #508721 #218387
split-complementary
#582187 #838721 #218725
monochromatic
#180925 #381556 #582187 #782DB8 #964FD4

Accessibility & contrast

On white

10.59
#582187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#582187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582187
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582187#FFFFFF#000000##FFFFFF
##5821871.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#4F3A52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #582187;
/* rgb */ color: rgb(88, 33, 135);
/* oklch */ color: oklch(38.6% 0.160 304.3);
Tailwind
colors: {
  custom: {
    50: '#8c62ab',
    500: '#582187',
    950: '#000000',
  },
}
SCSS
$custom: #582187;
$custom-light: #8c62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#582187",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 272.353,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38606,
    "c": 0.16044,
    "h": 304.3
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #582187

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

Preview Lab → · Contrast checker → · Palette generator →

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