#521870#521870

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

Color values

HEX#521870
RGBrgb(82, 24, 112)
HSLhsl(280, 65%, 27%)
HSVhsv(280, 79%, 44%)
CMYKcmyk(26.8%, 78.6%, 0%, 56.1%)
CIE-LABlab(22.36, 41.50, -38.67)
CIE-LCHlch(22.36, 56.72, 317.02°)
OKLaboklab(34.93% 0.0954 -0.1095)
OKLCHoklch(34.93% 0.145 311.1)
XYZxyz(6.7304, 3.6171, 15.6697)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521870 #367018
analogous
#261870 #521870 #701862
triadic
#521870 #705218 #187052
tetradic
#521870 #702618 #367018 #186270
square
#521870 #702618 #367018 #186270
split-complementary
#521870 #627018 #187026
monochromatic
#120519 #2D0D3E #521870 #7723A2 #9B30D3

Accessibility & contrast

On white

12.19
#521870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#521870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521870
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521870#FFFFFF#000000##FFFFFF
##5218701.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#06366E
Tritanopia (blue-blind)
#4E2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521870;
/* rgb */ color: rgb(82, 24, 112);
/* oklch */ color: oklch(34.9% 0.145 311.1);
Tailwind
colors: {
  custom: {
    50: '#865c9a',
    500: '#521870',
    950: '#000000',
  },
}
SCSS
$custom: #521870;
$custom-light: #865c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521870",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 279.545,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34929,
    "c": 0.14522,
    "h": 311.1
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #521870

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

Preview Lab → · Contrast checker → · Palette generator →

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