#531271#531271

#531271 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.153 H 311.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#531271
RGBrgb(83, 18, 113)
HSLhsl(281, 73%, 26%)
HSVhsv(281, 84%, 44%)
CMYKcmyk(26.5%, 84.1%, 0%, 55.7%)
CIE-LABlab(21.81, 44.21, -40.19)
CIE-LCHlch(21.81, 59.75, 317.72°)
OKLaboklab(34.6% 0.1021 -0.1139)
OKLCHoklch(34.6% 0.153 311.9)
XYZxyz(6.7637, 3.4641, 15.9319)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531271 #307112
analogous
#241271 #531271 #71125F
triadic
#531271 #715312 #127153
tetradic
#531271 #712412 #307112 #125F71
square
#531271 #712412 #307112 #125F71
split-complementary
#531271 #5F7112 #127124
monochromatic
#13041A #2C0A3C #531271 #7A1AA6 #A123DB

Accessibility & contrast

On white

12.41
#531271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#531271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531271
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531271#FFFFFF#000000##FFFFFF
##5312711.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4F2A42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #531271;
/* rgb */ color: rgb(83, 18, 113);
/* oklch */ color: oklch(34.6% 0.153 311.9);
Tailwind
colors: {
  custom: {
    50: '#87599a',
    500: '#531271',
    950: '#000000',
  },
}
SCSS
$custom: #531271;
$custom-light: #87599a;
$custom-dark: #000000;
JSON
{
  "hex": "#531271",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 281.053,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34602,
    "c": 0.15296,
    "h": 311.9
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#531271
secondary
#5BA837
accent
#EF3972
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531271

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

Preview Lab → · Contrast checker → · Palette generator →

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