#521872#521872

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

Color values

HEX#521872
RGBrgb(82, 24, 114)
HSLhsl(279, 65%, 27%)
HSVhsv(279, 79%, 45%)
CMYKcmyk(28.1%, 78.9%, 0%, 55.3%)
CIE-LABlab(22.52, 41.96, -39.70)
CIE-LCHlch(22.52, 57.76, 316.59°)
OKLaboklab(35.09% 0.095 -0.1125)
OKLCHoklch(35.09% 0.147 310.2)
XYZxyz(6.8430, 3.6622, 16.2627)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521872 #387218
analogous
#251872 #521872 #721865
triadic
#521872 #725218 #187252
tetradic
#521872 #722518 #387218 #186572
square
#521872 #722518 #387218 #186572
split-complementary
#521872 #657218 #187225
monochromatic
#120519 #2E0D3F #521872 #7623A5 #9A31D4

Accessibility & contrast

On white

12.12
#521872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521872
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521872#FFFFFF#000000##FFFFFF
##5218721.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#4D2D44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521872;
/* rgb */ color: rgb(82, 24, 114);
/* oklch */ color: oklch(35.1% 0.147 310.2);
Tailwind
colors: {
  custom: {
    50: '#865c9b',
    500: '#521872',
    950: '#000000',
  },
}
SCSS
$custom: #521872;
$custom-light: #865c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#521872",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 278.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35091,
    "c": 0.14726,
    "h": 310.2
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#521872
secondary
#64A73E
accent
#E8407C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521872

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

Preview Lab → · Contrast checker → · Palette generator →

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