#531B8B#531B8B

#531B8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.170 H 300.9°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#531B8B
RGBrgb(83, 27, 139)
HSLhsl(270, 67%, 33%)
HSVhsv(270, 81%, 55%)
CMYKcmyk(40.3%, 80.6%, 0%, 45.5%)
CIE-LABlab(25.22, 46.96, -51.13)
CIE-LCHlch(25.22, 69.42, 312.57°)
OKLaboklab(37.67% 0.0874 -0.1461)
OKLCHoklch(37.67% 0.17 300.9)
XYZxyz(8.6183, 4.4869, 24.8331)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531B8B #538B1B
analogous
#1B1B8B #531B8B #8B1B8B
triadic
#531B8B #8B531B #1B8B53
tetradic
#531B8B #8B1B1B #538B1B #1B8B8B
square
#531B8B #8B1B1B #538B1B #1B8B8B
split-complementary
#531B8B #8B8B1B #1B8B1B
monochromatic
#160725 #341158 #531B8B #7225BE #9045DB

Accessibility & contrast

On white

11.07
#531B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#531B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531B8B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531B8B#FFFFFF#000000##FFFFFF
##531B8B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #531b8b;
/* rgb */ color: rgb(83, 27, 139);
/* oklch */ color: oklch(37.7% 0.170 300.9);
Tailwind
colors: {
  custom: {
    50: '#895fae',
    500: '#531b8b',
    950: '#000000',
  },
}
SCSS
$custom: #531b8b;
$custom-light: #895fae;
$custom-dark: #000000;
JSON
{
  "hex": "#531b8b",
  "rgb": {
    "r": 83,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 270,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37675,
    "c": 0.17027,
    "h": 300.9
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#531B8B
secondary
#81BC45
accent
#EA3D94
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #531B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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