#521276#521276

#521276 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.157 H 309.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#521276
RGBrgb(82, 18, 118)
HSLhsl(278, 74%, 27%)
HSVhsv(278, 85%, 46%)
CMYKcmyk(30.5%, 84.7%, 0%, 53.7%)
CIE-LABlab(22.07, 45.15, -43.00)
CIE-LCHlch(22.07, 62.35, 316.39°)
OKLaboklab(34.88% 0.0993 -0.1222)
OKLCHoklch(34.88% 0.157 309.1)
XYZxyz(6.9653, 3.5346, 17.4513)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521276 #367612
analogous
#201276 #521276 #761268
triadic
#521276 #765212 #127652
tetradic
#521276 #762012 #367612 #126876
square
#521276 #762012 #367612 #126876
split-complementary
#521276 #687612 #127620
monochromatic
#12041B #2D0A41 #521276 #771AAB #9B25DE

Accessibility & contrast

On white

12.30
#521276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#521276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521276
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521276#FFFFFF#000000##FFFFFF
##5212761.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4C2D45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521276;
/* rgb */ color: rgb(82, 18, 118);
/* oklch */ color: oklch(34.9% 0.157 309.1);
Tailwind
colors: {
  custom: {
    50: '#87599e',
    500: '#521276',
    950: '#000000',
  },
}
SCSS
$custom: #521276;
$custom-light: #87599e;
$custom-dark: #000000;
JSON
{
  "hex": "#521276",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 278.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34877,
    "c": 0.15748,
    "h": 309.1
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#521276
secondary
#61AD37
accent
#F0387A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521276

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

Preview Lab → · Contrast checker → · Palette generator →

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