#531F87#531F87

#531F87 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.162 H 301.7°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#531F87
RGBrgb(83, 31, 135)
HSLhsl(270, 63%, 33%)
HSVhsv(270, 77%, 53%)
CMYKcmyk(38.5%, 77%, 0%, 47.1%)
CIE-LABlab(25.47, 44.24, -48.22)
CIE-LCHlch(25.47, 65.44, 312.53°)
OKLaboklab(37.74% 0.085 -0.1376)
OKLCHoklch(37.74% 0.162 301.7)
XYZxyz(8.4294, 4.5682, 23.3546)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531F87 #53871F
analogous
#1F1F87 #531F87 #871F87
triadic
#531F87 #87531F #1F8753
tetradic
#531F87 #871F1F #53871F #1F8787
square
#531F87 #871F1F #53871F #1F8787
split-complementary
#531F87 #87871F #1F871F
monochromatic
#160823 #341455 #531F87 #722AB9 #904BD6

Accessibility & contrast

On white

10.97
#531F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#531F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531F87
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531F87#FFFFFF#000000##FFFFFF
##531F871.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#483A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #531f87;
/* rgb */ color: rgb(83, 31, 135);
/* oklch */ color: oklch(37.7% 0.162 301.7);
Tailwind
colors: {
  custom: {
    50: '#8960ab',
    500: '#531f87',
    950: '#000000',
  },
}
SCSS
$custom: #531f87;
$custom-light: #8960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#531f87",
  "rgb": {
    "r": 83,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 270,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.16172,
    "h": 301.7
  },
  "luminance": 0.04568
}

Semantic roles & 50–950 ramp

primary
#531F87
secondary
#81B84A
accent
#E64294
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531F87

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

Preview Lab → · Contrast checker → · Palette generator →

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