#531871#531871

#531871 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.147 H 311.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#531871
RGBrgb(83, 24, 113)
HSLhsl(280, 65%, 27%)
HSVhsv(280, 79%, 44%)
CMYKcmyk(26.5%, 78.8%, 0%, 55.7%)
CIE-LABlab(22.60, 41.94, -38.92)
CIE-LCHlch(22.60, 57.21, 317.14°)
OKLaboklab(35.15% 0.0966 -0.1102)
OKLCHoklch(35.15% 0.147 311.2)
XYZxyz(6.8740, 3.6847, 15.9687)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#531871 #367118
analogous
#261871 #531871 #711863
triadic
#531871 #715318 #187153
tetradic
#531871 #712618 #367118 #186371
square
#531871 #712618 #367118 #186371
split-complementary
#531871 #637118 #187126
monochromatic
#130519 #2E0D3F #531871 #7823A3 #9C30D3

Accessibility & contrast

On white

12.09
#531871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#531871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #531871
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##531871#FFFFFF#000000##FFFFFF
##5318711.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #531871;
/* rgb */ color: rgb(83, 24, 113);
/* oklch */ color: oklch(35.2% 0.147 311.2);
Tailwind
colors: {
  custom: {
    50: '#875c9a',
    500: '#531871',
    950: '#000000',
  },
}
SCSS
$custom: #531871;
$custom-light: #875c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#531871",
  "rgb": {
    "r": 83,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 279.775,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35154,
    "c": 0.14657,
    "h": 311.2
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#531871
secondary
#61A63E
accent
#E84079
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #531871

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

Preview Lab → · Contrast checker → · Palette generator →

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