#521973#521973

#521973 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.147 H 309.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#521973
RGBrgb(82, 25, 115)
HSLhsl(278, 64%, 27%)
HSVhsv(278, 78%, 45%)
CMYKcmyk(28.7%, 78.3%, 0%, 54.9%)
CIE-LABlab(22.75, 41.78, -39.97)
CIE-LCHlch(22.75, 57.82, 316.26°)
OKLaboklab(35.28% 0.0938 -0.1133)
OKLCHoklch(35.28% 0.147 309.6)
XYZxyz(6.9212, 3.7270, 16.5711)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521973 #3A7319
analogous
#251973 #521973 #731967
triadic
#521973 #735219 #197352
tetradic
#521973 #732519 #3A7319 #196773
square
#521973 #732519 #3A7319 #196773
split-complementary
#521973 #677319 #197325
monochromatic
#120519 #2E0E41 #521973 #7624A5 #9834D3

Accessibility & contrast

On white

12.03
#521973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521973
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521973#FFFFFF#000000##FFFFFF
##5219731.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#013771
Tritanopia (blue-blind)
#4D2E45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521973;
/* rgb */ color: rgb(82, 25, 115);
/* oklch */ color: oklch(35.3% 0.147 309.6);
Tailwind
colors: {
  custom: {
    50: '#865c9c',
    500: '#521973',
    950: '#000000',
  },
}
SCSS
$custom: #521973;
$custom-light: #865c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#521973",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 278,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35276,
    "c": 0.14713,
    "h": 309.6
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#521973
secondary
#66A840
accent
#E7417E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521973

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

Preview Lab → · Contrast checker → · Palette generator →

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