#521E90#521E90

#521E90 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.172 H 298.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#521E90
RGBrgb(82, 30, 144)
HSLhsl(267, 66%, 34%)
HSVhsv(267, 79%, 56%)
CMYKcmyk(43.1%, 79.2%, 0%, 43.5%)
CIE-LABlab(25.97, 46.80, -53.01)
CIE-LCHlch(25.97, 70.72, 311.44°)
OKLaboklab(38.31% 0.0819 -0.1517)
OKLCHoklch(38.31% 0.172 298.4)
XYZxyz(8.9767, 4.7359, 26.8213)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E90 #5C901E
analogous
#1E2390 #521E90 #8B1E90
triadic
#521E90 #90521E #1E9052
tetradic
#521E90 #901E23 #5C901E #1E908B
square
#521E90 #901E23 #5C901E #1E908B
split-complementary
#521E90 #908B1E #23901E
monochromatic
#18092B #35135D #521E90 #6F29C3 #8E4EDA

Accessibility & contrast

On white

10.78
#521E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#521E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E90
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E90#FFFFFF#000000##FFFFFF
##521E901.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#003C8E
Tritanopia (blue-blind)
#423D56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #521e90;
/* rgb */ color: rgb(82, 30, 144);
/* oklch */ color: oklch(38.3% 0.172 298.4);
Tailwind
colors: {
  custom: {
    50: '#8960b1',
    500: '#521e90',
    950: '#000000',
  },
}
SCSS
$custom: #521e90;
$custom-light: #8960b1;
$custom-dark: #000000;
JSON
{
  "hex": "#521e90",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 267.368,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.17241,
    "h": 298.4
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#521E90
secondary
#8ABD4D
accent
#E83F9B
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521E90

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

Preview Lab → · Contrast checker → · Palette generator →

#521E90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva