#521796#521796

#521796 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.185 H 297.4°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#521796
RGBrgb(82, 23, 150)
HSLhsl(268, 73%, 34%)
HSVhsv(268, 85%, 59%)
CMYKcmyk(45.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(25.59, 51.05, -57.34)
CIE-LCHlch(25.59, 76.77, 311.68°)
OKLaboklab(38.21% 0.0852 -0.1643)
OKLCHoklch(38.21% 0.185 297.4)
XYZxyz(9.2896, 4.6085, 29.2483)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521796 #5B9617
analogous
#171C96 #521796 #921796
triadic
#521796 #965217 #179652
tetradic
#521796 #96171C #5B9617 #179692
square
#521796 #96171C #5B9617 #179692
split-complementary
#521796 #969217 #1C9617
monochromatic
#18072C #350F61 #521796 #6F1FCB #8E45E2

Accessibility & contrast

On white

10.93
#521796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#521796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521796
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521796#FFFFFF#000000##FFFFFF
##5217961.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#403D59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #521796;
/* rgb */ color: rgb(82, 23, 150);
/* oklch */ color: oklch(38.2% 0.185 297.4);
Tailwind
colors: {
  custom: {
    50: '#8a5eb6',
    500: '#521796',
    950: '#000000',
  },
}
SCSS
$custom: #521796;
$custom-light: #8a5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#521796",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 267.874,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38215,
    "c": 0.1851,
    "h": 297.4
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#521796
secondary
#89C345
accent
#F0389A
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #521796

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

Preview Lab → · Contrast checker → · Palette generator →

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