#531987#531987

#531987 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.168 H 302.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#531987
RGBrgb(83, 25, 135)
HSLhsl(272, 69%, 31%)
HSVhsv(272, 81%, 53%)
CMYKcmyk(38.5%, 81.5%, 0%, 47.1%)
CIE-LABlab(24.59, 46.77, -49.66)
CIE-LCHlch(24.59, 68.22, 313.28°)
OKLaboklab(37.12% 0.0903 -0.1418)
OKLCHoklch(37.12% 0.168 302.5)
XYZxyz(8.2870, 4.2835, 23.3072)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531987 #4D8719
analogous
#1C1987 #531987 #871984
triadic
#531987 #875319 #198753
tetradic
#531987 #871C19 #4D8719 #198487
square
#531987 #871C19 #4D8719 #198487
split-complementary
#531987 #848719 #19871C
monochromatic
#140620 #330F53 #531987 #7323BB #913FDB

Accessibility & contrast

On white

11.31
#531987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#531987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531987
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531987#FFFFFF#000000##FFFFFF
##5319871.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#483750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #531987;
/* rgb */ color: rgb(83, 25, 135);
/* oklch */ color: oklch(37.1% 0.168 302.5);
Tailwind
colors: {
  custom: {
    50: '#895eab',
    500: '#531987',
    950: '#000000',
  },
}
SCSS
$custom: #531987;
$custom-light: #895eab;
$custom-dark: #000000;
JSON
{
  "hex": "#531987",
  "rgb": {
    "r": 83,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 271.636,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37124,
    "c": 0.16808,
    "h": 302.5
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#531987
secondary
#7BBA41
accent
#EC3C8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531987

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

Preview Lab → · Contrast checker → · Palette generator →

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