#521777#521777

#521777 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.153 H 308.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#521777
RGBrgb(82, 23, 119)
HSLhsl(277, 68%, 28%)
HSVhsv(277, 81%, 47%)
CMYKcmyk(31.1%, 80.7%, 0%, 53.3%)
CIE-LABlab(22.79, 43.54, -42.47)
CIE-LCHlch(22.79, 60.82, 315.71°)
OKLaboklab(35.41% 0.0948 -0.1207)
OKLCHoklch(35.41% 0.153 308.2)
XYZxyz(7.1151, 3.7387, 17.7960)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521777 #3C7717
analogous
#221777 #521777 #77176C
triadic
#521777 #775217 #177752
tetradic
#521777 #772217 #3C7717 #176C77
square
#521777 #772217 #3C7717 #176C77
split-complementary
#521777 #6C7717 #177722
monochromatic
#12051A #2F0D44 #521777 #7521AA #9731D7

Accessibility & contrast

On white

12.02
#521777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#521777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521777
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521777#FFFFFF#000000##FFFFFF
##5217771.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#4C2F47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521777;
/* rgb */ color: rgb(82, 23, 119);
/* oklch */ color: oklch(35.4% 0.153 308.2);
Tailwind
colors: {
  custom: {
    50: '#875c9f',
    500: '#521777',
    950: '#000000',
  },
}
SCSS
$custom: #521777;
$custom-light: #875c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#521777",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 276.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35406,
    "c": 0.15348,
    "h": 308.2
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#521777
secondary
#68AC3E
accent
#EA3D80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521777

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

Preview Lab → · Contrast checker → · Palette generator →

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