#531172#531172

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

Color values

HEX#531172
RGBrgb(83, 17, 114)
HSLhsl(281, 74%, 26%)
HSVhsv(281, 85%, 45%)
CMYKcmyk(27.2%, 85.1%, 0%, 55.3%)
CIE-LABlab(21.78, 44.76, -40.89)
CIE-LCHlch(21.78, 60.63, 317.59°)
OKLaboklab(34.6% 0.1026 -0.1159)
OKLCHoklch(34.6% 0.155 311.5)
XYZxyz(6.8044, 3.4550, 16.2248)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531172 #307211
analogous
#221172 #531172 #721160
triadic
#531172 #725311 #117253
tetradic
#531172 #722211 #307211 #116072
square
#531172 #722211 #307211 #116072
split-complementary
#531172 #607211 #117222
monochromatic
#13041B #2C093D #531172 #7A19A7 #A121DD

Accessibility & contrast

On white

12.42
#531172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #531172
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531172#FFFFFF#000000##FFFFFF
##5311721.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4F2A43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #531172;
/* rgb */ color: rgb(83, 17, 114);
/* oklch */ color: oklch(34.6% 0.155 311.5);
Tailwind
colors: {
  custom: {
    50: '#88599b',
    500: '#531172',
    950: '#000000',
  },
}
SCSS
$custom: #531172;
$custom-light: #88599b;
$custom-dark: #000000;
JSON
{
  "hex": "#531172",
  "rgb": {
    "r": 83,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 280.825,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34604,
    "c": 0.15485,
    "h": 311.5
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#531172
secondary
#5BA936
accent
#F13772
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531172

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

Preview Lab → · Contrast checker → · Palette generator →

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