#531771#531771

#531771 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.148 H 311.4°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#531771
RGBrgb(83, 23, 113)
HSLhsl(280, 66%, 27%)
HSVhsv(280, 80%, 44%)
CMYKcmyk(26.5%, 79.6%, 0%, 55.7%)
CIE-LABlab(22.46, 42.34, -39.15)
CIE-LCHlch(22.46, 57.67, 317.25°)
OKLaboklab(35.05% 0.0976 -0.1109)
OKLCHoklch(35.05% 0.148 311.4)
XYZxyz(6.8537, 3.6442, 15.9619)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531771 #357117
analogous
#261771 #531771 #711762
triadic
#531771 #715317 #177153
tetradic
#531771 #712617 #357117 #176271
square
#531771 #712617 #357117 #176271
split-complementary
#531771 #627117 #177126
monochromatic
#130519 #2E0D3E #531771 #7821A4 #9D2ED4

Accessibility & contrast

On white

12.15
#531771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#531771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531771
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531771#FFFFFF#000000##FFFFFF
##5317711.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#05376F
Tritanopia (blue-blind)
#4F2C43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #531771;
/* rgb */ color: rgb(83, 23, 113);
/* oklch */ color: oklch(35.1% 0.148 311.4);
Tailwind
colors: {
  custom: {
    50: '#875b9a',
    500: '#531771',
    950: '#000000',
  },
}
SCSS
$custom: #531771;
$custom-light: #875b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#531771",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 280,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35054,
    "c": 0.14772,
    "h": 311.4
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#531771
secondary
#60A73D
accent
#E93F77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531771

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

Preview Lab → · Contrast checker → · Palette generator →

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