#521778#521778

#521778 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.154 H 307.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#521778
RGBrgb(82, 23, 120)
HSLhsl(276, 68%, 28%)
HSVhsv(276, 81%, 47%)
CMYKcmyk(31.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(22.87, 43.77, -42.98)
CIE-LCHlch(22.87, 61.34, 315.52°)
OKLaboklab(35.49% 0.0946 -0.1222)
OKLCHoklch(35.49% 0.154 307.7)
XYZxyz(7.1755, 3.7628, 18.1139)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521778 #3D7817
analogous
#221778 #521778 #78176D
triadic
#521778 #785217 #177852
tetradic
#521778 #782217 #3D7817 #176D78
square
#521778 #782217 #3D7817 #176D78
split-complementary
#521778 #6D7817 #177822
monochromatic
#12051A #2F0D45 #521778 #7521AB #9732D8

Accessibility & contrast

On white

11.98
#521778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521778
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521778#FFFFFF#000000##FFFFFF
##5217781.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#4C3047
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521778;
/* rgb */ color: rgb(82, 23, 120);
/* oklch */ color: oklch(35.5% 0.154 307.7);
Tailwind
colors: {
  custom: {
    50: '#875ca0',
    500: '#521778',
    950: '#000000',
  },
}
SCSS
$custom: #521778;
$custom-light: #875ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#521778",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 276.495,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35491,
    "c": 0.15449,
    "h": 307.7
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#521778
secondary
#69AD3E
accent
#EB3D81
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521778

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

Preview Lab → · Contrast checker → · Palette generator →

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