#531786#531786

#531786 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.169 H 303.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#531786
RGBrgb(83, 23, 134)
HSLhsl(272, 71%, 31%)
HSVhsv(272, 83%, 53%)
CMYKcmyk(38.1%, 82.8%, 0%, 47.5%)
CIE-LABlab(24.24, 47.29, -49.61)
CIE-LCHlch(24.24, 68.54, 313.63°)
OKLaboklab(36.85% 0.0922 -0.1416)
OKLCHoklch(36.85% 0.169 303.1)
XYZxyz(8.1757, 4.1730, 22.9244)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531786 #4A8617
analogous
#1B1786 #531786 #861781
triadic
#531786 #865317 #178653
tetradic
#531786 #861B17 #4A8617 #178186
square
#531786 #861B17 #4A8617 #178186
split-complementary
#531786 #818617 #17861B
monochromatic
#12051E #330E52 #531786 #7320BA #923ADD

Accessibility & contrast

On white

11.45
#531786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#531786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531786
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531786#FFFFFF#000000##FFFFFF
##5317861.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#48364F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #531786;
/* rgb */ color: rgb(83, 23, 134);
/* oklch */ color: oklch(36.9% 0.169 303.1);
Tailwind
colors: {
  custom: {
    50: '#895daa',
    500: '#531786',
    950: '#000000',
  },
}
SCSS
$custom: #531786;
$custom-light: #895daa;
$custom-dark: #000000;
JSON
{
  "hex": "#531786",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 272.432,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36851,
    "c": 0.16896,
    "h": 303.1
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#531786
secondary
#77BA3F
accent
#ED3A8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #531786

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

Preview Lab → · Contrast checker → · Palette generator →

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