#521871#521871

#521871 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.146 H 310.6°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#521871
RGBrgb(82, 24, 113)
HSLhsl(279, 65%, 27%)
HSVhsv(279, 79%, 44%)
CMYKcmyk(27.4%, 78.8%, 0%, 55.7%)
CIE-LABlab(22.44, 41.73, -39.18)
CIE-LCHlch(22.44, 57.24, 316.80°)
OKLaboklab(35.01% 0.0952 -0.111)
OKLCHoklch(35.01% 0.146 310.6)
XYZxyz(6.7864, 3.6395, 15.9646)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521871 #377118
analogous
#251871 #521871 #711864
triadic
#521871 #715218 #187152
tetradic
#521871 #712518 #377118 #186471
square
#521871 #712518 #377118 #186471
split-complementary
#521871 #647118 #187125
monochromatic
#120519 #2D0D3F #521871 #7723A3 #9A30D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##521871#FFFFFF#000000##FFFFFF
##5218711.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)
#04376F
Tritanopia (blue-blind)
#4E2D43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521871;
/* rgb */ color: rgb(82, 24, 113);
/* oklch */ color: oklch(35.0% 0.146 310.6);
Tailwind
colors: {
  custom: {
    50: '#865c9a',
    500: '#521871',
    950: '#000000',
  },
}
SCSS
$custom: #521871;
$custom-light: #865c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521871",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 279.101,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3501,
    "c": 0.14624,
    "h": 310.6
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#521871
secondary
#63A63E
accent
#E8407A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521871

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

Preview Lab → · Contrast checker → · Palette generator →

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