#521876#521876

#521876 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.151 H 308.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#521876
RGBrgb(82, 24, 118)
HSLhsl(277, 66%, 28%)
HSVhsv(277, 80%, 46%)
CMYKcmyk(30.5%, 79.7%, 0%, 53.7%)
CIE-LABlab(22.84, 42.90, -41.74)
CIE-LCHlch(22.84, 59.86, 315.78°)
OKLaboklab(35.42% 0.0941 -0.1185)
OKLCHoklch(35.42% 0.151 308.5)
XYZxyz(7.0756, 3.7552, 17.4881)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521876 #3C7618
analogous
#231876 #521876 #76186B
triadic
#521876 #765218 #187652
tetradic
#521876 #762318 #3C7618 #186B76
square
#521876 #762318 #3C7618 #186B76
split-complementary
#521876 #6B7618 #187623
monochromatic
#120519 #2F0E43 #521876 #7522A9 #9733D5

Accessibility & contrast

On white

11.99
#521876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521876
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521876#FFFFFF#000000##FFFFFF
##5218761.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#4C2F46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521876;
/* rgb */ color: rgb(82, 24, 118);
/* oklch */ color: oklch(35.4% 0.151 308.5);
Tailwind
colors: {
  custom: {
    50: '#875c9e',
    500: '#521876',
    950: '#000000',
  },
}
SCSS
$custom: #521876;
$custom-light: #875c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#521876",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 277.021,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3542,
    "c": 0.15137,
    "h": 308.5
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#521876
secondary
#68AB3F
accent
#E93F80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521876

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

Preview Lab → · Contrast checker → · Palette generator →

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