#581252#581252

#581252 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.127 H 331.8°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#581252
RGBrgb(88, 18, 82)
HSLhsl(305, 66%, 21%)
HSVhsv(305, 80%, 35%)
CMYKcmyk(0%, 79.5%, 6.8%, 65.5%)
CIE-LABlab(20.51, 39.08, -21.79)
CIE-LCHlch(20.51, 44.75, 330.86°)
OKLaboklab(33.15% 0.112 -0.0599)
OKLCHoklch(33.15% 0.127 331.8)
XYZxyz(5.7638, 3.1170, 8.2791)
Luminance0.0312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581252 #125818
analogous
#3B1258 #581252 #58122F
triadic
#581252 #525812 #125258
tetradic
#581252 #583B12 #125818 #122F58
square
#581252 #583B12 #125818 #122F58
split-complementary
#581252 #2F5812 #12583B
monochromatic
#190518 #250823 #581252 #8B1C81 #BE27B1

Accessibility & contrast

On white

12.94
#581252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#581252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581252
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581252#FFFFFF#000000##FFFFFF
##5812521.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#293550
Tritanopia (blue-blind)
#5C1A31
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #581252;
/* rgb */ color: rgb(88, 18, 82);
/* oklch */ color: oklch(33.1% 0.127 331.8);
Tailwind
colors: {
  custom: {
    50: '#8a5883',
    500: '#581252',
    950: '#000000',
  },
}
SCSS
$custom: #581252;
$custom-light: #8a5883;
$custom-dark: #000000;
JSON
{
  "hex": "#581252",
  "rgb": {
    "r": 88,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 305.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3315,
    "c": 0.12703,
    "h": 331.8
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#581252
secondary
#35913D
accent
#E94D3F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #581252

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

Preview Lab → · Contrast checker → · Palette generator →

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