#531781#531781

#531781 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.164 H 304.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#531781
RGBrgb(83, 23, 129)
HSLhsl(274, 70%, 30%)
HSVhsv(274, 82%, 51%)
CMYKcmyk(35.7%, 82.2%, 0%, 49.4%)
CIE-LABlab(23.79, 46.09, -47.19)
CIE-LCHlch(23.79, 65.96, 314.33°)
OKLaboklab(36.41% 0.0937 -0.1345)
OKLCHoklch(36.41% 0.164 304.9)
XYZxyz(7.8352, 4.0368, 21.1310)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531781 #458117
analogous
#1E1781 #531781 #81177A
triadic
#531781 #815317 #178153
tetradic
#531781 #811E17 #458117 #177A81
square
#531781 #811E17 #458117 #177A81
split-complementary
#531781 #7A8117 #17811E
monochromatic
#11051A #320E4D #531781 #7420B5 #9437DB

Accessibility & contrast

On white

11.62
#531781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#531781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531781
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531781#FFFFFF#000000##FFFFFF
##5317811.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#4A334C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #531781;
/* rgb */ color: rgb(83, 23, 129);
/* oklch */ color: oklch(36.4% 0.164 304.9);
Tailwind
colors: {
  custom: {
    50: '#895ca6',
    500: '#531781',
    950: '#000000',
  },
}
SCSS
$custom: #531781;
$custom-light: #895ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#531781",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 273.962,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36406,
    "c": 0.1639,
    "h": 304.9
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#531781
secondary
#72B53E
accent
#ED3B88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #531781

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

Preview Lab → · Contrast checker → · Palette generator →

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