#531788#531788

#531788 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.171 H 302.4°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#531788
RGBrgb(83, 23, 136)
HSLhsl(272, 71%, 31%)
HSVhsv(272, 83%, 53%)
CMYKcmyk(39%, 83.1%, 0%, 46.7%)
CIE-LABlab(24.42, 47.77, -50.57)
CIE-LCHlch(24.42, 69.56, 313.37°)
OKLaboklab(37.03% 0.0916 -0.1444)
OKLCHoklch(37.03% 0.171 302.4)
XYZxyz(8.3165, 4.2293, 23.6660)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531788 #4C8817
analogous
#1A1788 #531788 #881784
triadic
#531788 #885317 #178853
tetradic
#531788 #881A17 #4C8817 #178488
square
#531788 #881A17 #4C8817 #178488
split-complementary
#531788 #848817 #17881A
monochromatic
#13051F #330E54 #531788 #7320BC #923BDE

Accessibility & contrast

On white

11.38
#531788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#531788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531788
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531788#FFFFFF#000000##FFFFFF
##5317881.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#483650
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #531788;
/* rgb */ color: rgb(83, 23, 136);
/* oklch */ color: oklch(37.0% 0.171 302.4);
Tailwind
colors: {
  custom: {
    50: '#895dac',
    500: '#531788',
    950: '#000000',
  },
}
SCSS
$custom: #531788;
$custom-light: #895dac;
$custom-dark: #000000;
JSON
{
  "hex": "#531788",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 271.858,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37032,
    "c": 0.17099,
    "h": 302.4
  },
  "luminance": 0.04229
}

Semantic roles & 50–950 ramp

primary
#531788
secondary
#7ABC3F
accent
#EE3A8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531788

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

Preview Lab → · Contrast checker → · Palette generator →

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