#531B87#531B87

#531B87 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.166 H 302.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#531B87
RGBrgb(83, 27, 135)
HSLhsl(271, 67%, 32%)
HSVhsv(271, 80%, 53%)
CMYKcmyk(38.5%, 80%, 0%, 47.1%)
CIE-LABlab(24.87, 45.96, -49.21)
CIE-LCHlch(24.87, 67.33, 313.05°)
OKLaboklab(37.32% 0.0886 -0.1405)
OKLCHoklch(37.32% 0.166 302.2)
XYZxyz(8.3313, 4.3721, 23.3219)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531B87 #4F871B
analogous
#1D1B87 #531B87 #871B85
triadic
#531B87 #87531B #1B8753
tetradic
#531B87 #871D1B #4F871B #1B8587
square
#531B87 #871D1B #4F871B #1B8587
split-complementary
#531B87 #85871B #1B871D
monochromatic
#140721 #341154 #531B87 #7225BA #9143D9

Accessibility & contrast

On white

11.20
#531B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#531B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531B87
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531B87#FFFFFF#000000##FFFFFF
##531B871.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#483851
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #531b87;
/* rgb */ color: rgb(83, 27, 135);
/* oklch */ color: oklch(37.3% 0.166 302.2);
Tailwind
colors: {
  custom: {
    50: '#895eab',
    500: '#531b87',
    950: '#000000',
  },
}
SCSS
$custom: #531b87;
$custom-light: #895eab;
$custom-dark: #000000;
JSON
{
  "hex": "#531b87",
  "rgb": {
    "r": 83,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 271.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37318,
    "c": 0.16606,
    "h": 302.2
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#531B87
secondary
#7DBA44
accent
#EA3E91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531B87

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

Preview Lab → · Contrast checker → · Palette generator →

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