#531171#531171

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

Color values

HEX#531171
RGBrgb(83, 17, 113)
HSLhsl(281, 74%, 25%)
HSVhsv(281, 85%, 44%)
CMYKcmyk(26.5%, 85%, 0%, 55.7%)
CIE-LABlab(21.70, 44.54, -40.38)
CIE-LCHlch(21.70, 60.12, 317.81°)
OKLaboklab(34.52% 0.1029 -0.1144)
OKLCHoklch(34.52% 0.154 312)
XYZxyz(6.7478, 3.4323, 15.9266)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531171 #2F7111
analogous
#231171 #531171 #71115F
triadic
#531171 #715311 #117153
tetradic
#531171 #712311 #2F7111 #115F71
square
#531171 #712311 #2F7111 #115F71
split-complementary
#531171 #5F7111 #117123
monochromatic
#14041B #2C093C #531171 #7A19A6 #A121DB

Accessibility & contrast

On white

12.45
#531171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #531171
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531171#FFFFFF#000000##FFFFFF
##5311711.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.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: #531171;
/* rgb */ color: rgb(83, 17, 113);
/* oklch */ color: oklch(34.5% 0.154 312.0);
Tailwind
colors: {
  custom: {
    50: '#87599a',
    500: '#531171',
    950: '#000000',
  },
}
SCSS
$custom: #531171;
$custom-light: #87599a;
$custom-dark: #000000;
JSON
{
  "hex": "#531171",
  "rgb": {
    "r": 83,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 281.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.15391,
    "h": 312
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#531171
secondary
#59A836
accent
#F13771
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531171

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

Preview Lab → · Contrast checker → · Palette generator →

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