#582181#582181

#582181 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.154 H 306.5°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#582181
RGBrgb(88, 33, 129)
HSLhsl(274, 59%, 32%)
HSVhsv(274, 74%, 51%)
CMYKcmyk(31.8%, 74.4%, 0%, 49.4%)
CIE-LABlab(26.00, 42.81, -43.56)
CIE-LCHlch(26.00, 61.07, 314.50°)
OKLaboklab(38.12% 0.0916 -0.1237)
OKLCHoklch(38.12% 0.154 306.5)
XYZxyz(8.5299, 4.7475, 21.2316)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582181 #4A8121
analogous
#282181 #582181 #81217A
triadic
#582181 #815821 #218158
tetradic
#582181 #812821 #4A8121 #217A81
square
#582181 #812821 #4A8121 #217A81
split-complementary
#582181 #7A8121 #218128
monochromatic
#160820 #371550 #582181 #792DB2 #984BD1

Accessibility & contrast

On white

10.77
#582181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#582181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582181
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582181#FFFFFF#000000##FFFFFF
##5821811.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#51384F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #582181;
/* rgb */ color: rgb(88, 33, 129);
/* oklch */ color: oklch(38.1% 0.154 306.5);
Tailwind
colors: {
  custom: {
    50: '#8b62a6',
    500: '#582181',
    950: '#000000',
  },
}
SCSS
$custom: #582181;
$custom-light: #8b62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#582181",
  "rgb": {
    "r": 88,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 274.375,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38116,
    "c": 0.15396,
    "h": 306.5
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#582181
secondary
#77B44A
accent
#E24588
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #582181

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

Preview Lab → · Contrast checker → · Palette generator →

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