#521477#521477

#521477 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.157 H 308.5°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#521477
RGBrgb(82, 20, 119)
HSLhsl(278, 71%, 27%)
HSVhsv(278, 83%, 47%)
CMYKcmyk(31.1%, 83.2%, 0%, 53.3%)
CIE-LABlab(22.40, 44.67, -43.11)
CIE-LCHlch(22.40, 62.08, 316.02°)
OKLaboklab(35.13% 0.0974 -0.1225)
OKLCHoklch(35.13% 0.157 308.5)
XYZxyz(7.0589, 3.6262, 17.7772)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521477 #397714
analogous
#211477 #521477 #77146A
triadic
#521477 #775214 #147752
tetradic
#521477 #772114 #397714 #146A77
square
#521477 #772114 #397714 #146A77
split-complementary
#521477 #6A7714 #147721
monochromatic
#12041A #2E0B43 #521477 #761DAB #992ADB

Accessibility & contrast

On white

12.17
#521477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521477
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521477#FFFFFF#000000##FFFFFF
##5214771.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#4C2E46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521477;
/* rgb */ color: rgb(82, 20, 119);
/* oklch */ color: oklch(35.1% 0.157 308.5);
Tailwind
colors: {
  custom: {
    50: '#875a9f',
    500: '#521477',
    950: '#000000',
  },
}
SCSS
$custom: #521477;
$custom-light: #875a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#521477",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 277.576,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35131,
    "c": 0.15656,
    "h": 308.5
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#521477
secondary
#65AD3A
accent
#EE3A7D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521477

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

Preview Lab → · Contrast checker → · Palette generator →

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