#521273#521273

#521273 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.155 H 310.4°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#521273
RGBrgb(82, 18, 115)
HSLhsl(280, 73%, 26%)
HSVhsv(280, 84%, 45%)
CMYKcmyk(28.7%, 84.3%, 0%, 54.9%)
CIE-LABlab(21.82, 44.47, -41.49)
CIE-LCHlch(21.82, 60.82, 316.99°)
OKLaboklab(34.62% 0.1001 -0.1177)
OKLCHoklch(34.62% 0.155 310.4)
XYZxyz(6.7899, 3.4644, 16.5273)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521273 #337312
analogous
#221273 #521273 #731263
triadic
#521273 #735212 #127352
tetradic
#521273 #732212 #337312 #126373
square
#521273 #732212 #337312 #126373
split-complementary
#521273 #637312 #127322
monochromatic
#13041A #2C0A3E #521273 #781AA8 #9D23DD

Accessibility & contrast

On white

12.41
#521273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521273
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521273#FFFFFF#000000##FFFFFF
##5212731.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#4D2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521273;
/* rgb */ color: rgb(82, 18, 115);
/* oklch */ color: oklch(34.6% 0.155 310.4);
Tailwind
colors: {
  custom: {
    50: '#87599c',
    500: '#521273',
    950: '#000000',
  },
}
SCSS
$custom: #521273;
$custom-light: #87599c;
$custom-dark: #000000;
JSON
{
  "hex": "#521273",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 279.588,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34621,
    "c": 0.15457,
    "h": 310.4
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#521273
secondary
#5EAA37
accent
#F03877
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521273

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

Preview Lab → · Contrast checker → · Palette generator →

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