#531173#531173

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

Color values

HEX#531173
RGBrgb(83, 17, 115)
HSLhsl(280, 74%, 26%)
HSVhsv(280, 85%, 45%)
CMYKcmyk(27.8%, 85.2%, 0%, 54.9%)
CIE-LABlab(21.86, 44.98, -41.40)
CIE-LCHlch(21.86, 61.14, 317.38°)
OKLaboklab(34.69% 0.1024 -0.1174)
OKLCHoklch(34.69% 0.156 311.1)
XYZxyz(6.8616, 3.4779, 16.5262)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531173 #317311
analogous
#221173 #531173 #731162
triadic
#531173 #735311 #117353
tetradic
#531173 #732211 #317311 #116273
square
#531173 #732211 #317311 #116273
split-complementary
#531173 #627311 #117322
monochromatic
#13041B #2D093E #531173 #7919A8 #A021DE

Accessibility & contrast

On white

12.38
#531173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #531173
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531173#FFFFFF#000000##FFFFFF
##5311731.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#4F2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #531173;
/* rgb */ color: rgb(83, 17, 115);
/* oklch */ color: oklch(34.7% 0.156 311.1);
Tailwind
colors: {
  custom: {
    50: '#88599c',
    500: '#531173',
    950: '#000000',
  },
}
SCSS
$custom: #531173;
$custom-light: #88599c;
$custom-dark: #000000;
JSON
{
  "hex": "#531173",
  "rgb": {
    "r": 83,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 280.408,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34688,
    "c": 0.15581,
    "h": 311.1
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#531173
secondary
#5CAA36
accent
#F13774
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531173

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

Preview Lab → · Contrast checker → · Palette generator →

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