#531371#531371

#531371 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.152 H 311.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#531371
RGBrgb(83, 19, 113)
HSLhsl(281, 71%, 26%)
HSVhsv(281, 83%, 44%)
CMYKcmyk(26.5%, 83.2%, 0%, 55.7%)
CIE-LABlab(21.93, 43.86, -40.00)
CIE-LCHlch(21.93, 59.36, 317.63°)
OKLaboklab(34.69% 0.1013 -0.1133)
OKLCHoklch(34.69% 0.152 311.8)
XYZxyz(6.7802, 3.4972, 15.9374)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531371 #317113
analogous
#241371 #531371 #711360
triadic
#531371 #715313 #137153
tetradic
#531371 #712413 #317113 #136071
square
#531371 #712413 #317113 #136071
split-complementary
#531371 #607113 #137124
monochromatic
#13041A #2D0A3D #531371 #791CA5 #A025DA

Accessibility & contrast

On white

12.36
#531371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#531371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531371
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531371#FFFFFF#000000##FFFFFF
##5313711.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#4F2B42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #531371;
/* rgb */ color: rgb(83, 19, 113);
/* oklch */ color: oklch(34.7% 0.152 311.8);
Tailwind
colors: {
  custom: {
    50: '#875a9a',
    500: '#531371',
    950: '#000000',
  },
}
SCSS
$custom: #531371;
$custom-light: #875a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#531371",
  "rgb": {
    "r": 83,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 280.851,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34686,
    "c": 0.15198,
    "h": 311.8
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#531371
secondary
#5CA838
accent
#EE3A73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531371

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

Preview Lab → · Contrast checker → · Palette generator →

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