#531971#531971

#531971 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.145 H 311.1°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#531971
RGBrgb(83, 25, 113)
HSLhsl(280, 64%, 27%)
HSVhsv(280, 78%, 44%)
CMYKcmyk(26.5%, 77.9%, 0%, 55.7%)
CIE-LABlab(22.75, 41.52, -38.68)
CIE-LCHlch(22.75, 56.75, 317.03°)
OKLaboklab(35.26% 0.0956 -0.1095)
OKLCHoklch(35.26% 0.145 311.1)
XYZxyz(6.8950, 3.7267, 15.9757)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531971 #377119
analogous
#271971 #531971 #711963
triadic
#531971 #715319 #197153
tetradic
#531971 #712719 #377119 #196371
square
#531971 #712719 #377119 #196371
split-complementary
#531971 #637119 #197127
monochromatic
#120619 #2E0E3F #531971 #7824A3 #9C33D2

Accessibility & contrast

On white

12.03
#531971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#531971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531971
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531971#FFFFFF#000000##FFFFFF
##5319711.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#08376F
Tritanopia (blue-blind)
#4F2D44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #531971;
/* rgb */ color: rgb(83, 25, 113);
/* oklch */ color: oklch(35.3% 0.145 311.1);
Tailwind
colors: {
  custom: {
    50: '#875c9a',
    500: '#531971',
    950: '#000000',
  },
}
SCSS
$custom: #531971;
$custom-light: #875c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#531971",
  "rgb": {
    "r": 83,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 279.545,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.1454,
    "h": 311.1
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#531971
secondary
#63A640
accent
#E7417A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531971

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

Preview Lab → · Contrast checker → · Palette generator →

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