#531281#531281

#531281 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.168 H 305.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#531281
RGBrgb(83, 18, 129)
HSLhsl(275, 76%, 29%)
HSVhsv(275, 86%, 51%)
CMYKcmyk(35.7%, 86%, 0%, 49.4%)
CIE-LABlab(23.19, 47.84, -48.17)
CIE-LCHlch(23.19, 67.89, 314.81°)
OKLaboklab(35.99% 0.0975 -0.1373)
OKLCHoklch(35.99% 0.168 305.4)
XYZxyz(7.7451, 3.8566, 21.1010)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531281 #408112
analogous
#1C1281 #531281 #811278
triadic
#531281 #815312 #128153
tetradic
#531281 #811C12 #408112 #127881
square
#531281 #811C12 #408112 #127881
split-complementary
#531281 #788112 #12811C
monochromatic
#11041B #300B4B #531281 #7619B7 #962CE2

Accessibility & contrast

On white

11.86
#531281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#531281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531281
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531281#FFFFFF#000000##FFFFFF
##5312811.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#4A314B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #531281;
/* rgb */ color: rgb(83, 18, 129);
/* oklch */ color: oklch(36.0% 0.168 305.4);
Tailwind
colors: {
  custom: {
    50: '#895aa6',
    500: '#531281',
    950: '#000000',
  },
}
SCSS
$custom: #531281;
$custom-light: #895aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#531281",
  "rgb": {
    "r": 83,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 275.135,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35989,
    "c": 0.1684,
    "h": 305.4
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#531281
secondary
#6DB738
accent
#F23684
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #531281

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

Preview Lab → · Contrast checker → · Palette generator →

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