#531A8B#531A8B

#531A8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.171 H 301.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#531A8B
RGBrgb(83, 26, 139)
HSLhsl(270, 68%, 32%)
HSVhsv(270, 81%, 55%)
CMYKcmyk(40.3%, 81.3%, 0%, 45.5%)
CIE-LABlab(25.08, 47.36, -51.35)
CIE-LCHlch(25.08, 69.86, 312.68°)
OKLaboklab(37.58% 0.0883 -0.1467)
OKLCHoklch(37.58% 0.171 301)
XYZxyz(8.5957, 4.4418, 24.8256)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531A8B #528B1A
analogous
#1A1A8B #531A8B #8B1A8B
triadic
#531A8B #8B531A #1A8B53
tetradic
#531A8B #8B1A1A #528B1A #1A8B8B
square
#531A8B #8B1A1A #528B1A #1A8B8B
split-complementary
#531A8B #8B8B1A #1A8B1A
monochromatic
#150724 #341057 #531A8B #7224BF #9043DC

Accessibility & contrast

On white

11.12
#531A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#531A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531A8B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531A8B#FFFFFF#000000##FFFFFF
##531A8B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#463953
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #531a8b;
/* rgb */ color: rgb(83, 26, 139);
/* oklch */ color: oklch(37.6% 0.171 301.0);
Tailwind
colors: {
  custom: {
    50: '#895eae',
    500: '#531a8b',
    950: '#000000',
  },
}
SCSS
$custom: #531a8b;
$custom-light: #895eae;
$custom-dark: #000000;
JSON
{
  "hex": "#531a8b",
  "rgb": {
    "r": 83,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 270.265,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37578,
    "c": 0.17124,
    "h": 301
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#531A8B
secondary
#80BD44
accent
#EB3C93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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