#531A87#531A87

#531A87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.167 H 302.4°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#531A87
RGBrgb(83, 26, 135)
HSLhsl(271, 68%, 32%)
HSVhsv(271, 81%, 53%)
CMYKcmyk(38.5%, 80.7%, 0%, 47.1%)
CIE-LABlab(24.72, 46.37, -49.44)
CIE-LCHlch(24.72, 67.78, 313.17°)
OKLaboklab(37.22% 0.0894 -0.1411)
OKLCHoklch(37.22% 0.167 302.4)
XYZxyz(8.3088, 4.3270, 23.3144)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531A87 #4E871A
analogous
#1C1A87 #531A87 #871A85
triadic
#531A87 #87531A #1A8753
tetradic
#531A87 #871C1A #4E871A #1A8587
square
#531A87 #871C1A #4E871A #1A8587
split-complementary
#531A87 #85871A #1A871C
monochromatic
#140620 #331054 #531A87 #7324BA #9141DA

Accessibility & contrast

On white

11.26
#531A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#531A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531A87
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531A87#FFFFFF#000000##FFFFFF
##531A871.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#483750
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #531a87;
/* rgb */ color: rgb(83, 26, 135);
/* oklch */ color: oklch(37.2% 0.167 302.4);
Tailwind
colors: {
  custom: {
    50: '#895eab',
    500: '#531a87',
    950: '#000000',
  },
}
SCSS
$custom: #531a87;
$custom-light: #895eab;
$custom-dark: #000000;
JSON
{
  "hex": "#531a87",
  "rgb": {
    "r": 83,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 271.376,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37219,
    "c": 0.16708,
    "h": 302.4
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#531A87
secondary
#7CBA42
accent
#EB3D90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531A87

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

Preview Lab → · Contrast checker → · Palette generator →

#531A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva