#531270#531270

#531270 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.5% C 0.152 H 312.3°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#531270
RGBrgb(83, 18, 112)
HSLhsl(281, 72%, 25%)
HSVhsv(281, 84%, 44%)
CMYKcmyk(25.9%, 83.9%, 0%, 56.1%)
CIE-LABlab(21.73, 43.98, -39.68)
CIE-LCHlch(21.73, 59.24, 317.95°)
OKLaboklab(34.52% 0.1023 -0.1124)
OKLCHoklch(34.52% 0.152 312.3)
XYZxyz(6.7077, 3.4417, 15.6371)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531270 #2F7012
analogous
#241270 #531270 #70125E
triadic
#531270 #705312 #127053
tetradic
#531270 #702412 #2F7012 #125E70
square
#531270 #702412 #2F7012 #125E70
split-complementary
#531270 #5E7012 #127024
monochromatic
#14041A #2C0A3B #531270 #7A1AA5 #A123D9

Accessibility & contrast

On white

12.44
#531270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #531270
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531270#FFFFFF#000000##FFFFFF
##5312701.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #531270;
/* rgb */ color: rgb(83, 18, 112);
/* oklch */ color: oklch(34.5% 0.152 312.3);
Tailwind
colors: {
  custom: {
    50: '#87599a',
    500: '#531270',
    950: '#000000',
  },
}
SCSS
$custom: #531270;
$custom-light: #87599a;
$custom-dark: #000000;
JSON
{
  "hex": "#531270",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 281.489,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34519,
    "c": 0.152,
    "h": 312.3
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#531270
secondary
#59A737
accent
#EF3971
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531270

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

Preview Lab → · Contrast checker → · Palette generator →

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