#521687#521687

#521687 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.171 H 302.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#521687
RGBrgb(82, 22, 135)
HSLhsl(272, 72%, 31%)
HSVhsv(272, 84%, 53%)
CMYKcmyk(39.3%, 83.7%, 0%, 47.1%)
CIE-LABlab(24.05, 47.73, -50.54)
CIE-LCHlch(24.05, 69.52, 313.37°)
OKLaboklab(36.72% 0.0911 -0.1444)
OKLCHoklch(36.72% 0.171 302.2)
XYZxyz(8.1387, 4.1169, 23.2828)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521687 #4B8716
analogous
#191687 #521687 #871683
triadic
#521687 #875216 #168752
tetradic
#521687 #871916 #4B8716 #168387
square
#521687 #871916 #4B8716 #168387
split-complementary
#521687 #838716 #168719
monochromatic
#12051E #320D52 #521687 #721FBC #9139DF

Accessibility & contrast

On white

11.52
#521687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#521687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521687
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521687#FFFFFF#000000##FFFFFF
##5216871.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#463650
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #521687;
/* rgb */ color: rgb(82, 22, 135);
/* oklch */ color: oklch(36.7% 0.171 302.2);
Tailwind
colors: {
  custom: {
    50: '#895cab',
    500: '#521687',
    950: '#000000',
  },
}
SCSS
$custom: #521687;
$custom-light: #895cab;
$custom-dark: #000000;
JSON
{
  "hex": "#521687",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 271.858,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36722,
    "c": 0.1707,
    "h": 302.2
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#521687
secondary
#79BB3E
accent
#EF398E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #521687

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

Preview Lab → · Contrast checker → · Palette generator →

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