#521770#521770

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

Color values

HEX#521770
RGBrgb(82, 23, 112)
HSLhsl(280, 66%, 26%)
HSVhsv(280, 79%, 44%)
CMYKcmyk(26.8%, 79.5%, 0%, 56.1%)
CIE-LABlab(22.22, 41.91, -38.90)
CIE-LCHlch(22.22, 57.18, 317.13°)
OKLaboklab(34.83% 0.0964 -0.1102)
OKLCHoklch(34.83% 0.146 311.2)
XYZxyz(6.7101, 3.5767, 15.6630)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521770 #357017
analogous
#261770 #521770 #701762
triadic
#521770 #705217 #177052
tetradic
#521770 #702617 #357017 #176270
square
#521770 #702617 #357017 #176270
split-complementary
#521770 #627017 #177026
monochromatic
#130519 #2D0D3D #521770 #7721A3 #9C2DD4

Accessibility & contrast

On white

12.24
#521770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521770
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521770#FFFFFF#000000##FFFFFF
##5217701.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#05366E
Tritanopia (blue-blind)
#4E2C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521770;
/* rgb */ color: rgb(82, 23, 112);
/* oklch */ color: oklch(34.8% 0.146 311.2);
Tailwind
colors: {
  custom: {
    50: '#865b9a',
    500: '#521770',
    950: '#000000',
  },
}
SCSS
$custom: #521770;
$custom-light: #865b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#521770",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 279.775,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34828,
    "c": 0.14637,
    "h": 311.2
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#521770
secondary
#60A63D
accent
#E93F78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521770

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

Preview Lab → · Contrast checker → · Palette generator →

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