#521F98#521F98

#521F98 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.180 H 295.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#521F98
RGBrgb(82, 31, 152)
HSLhsl(265, 66%, 36%)
HSVhsv(265, 80%, 60%)
CMYKcmyk(46.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(26.85, 48.44, -56.50)
CIE-LCHlch(26.85, 74.42, 310.61°)
OKLaboklab(39.15% 0.0787 -0.1619)
OKLCHoklch(39.15% 0.18 295.9)
XYZxyz(9.6356, 5.0406, 30.1649)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F98 #65981F
analogous
#1F2998 #521F98 #8E1F98
triadic
#521F98 #98521F #1F9852
tetradic
#521F98 #981F29 #65981F #1F988E
square
#521F98 #981F29 #65981F #1F988E
split-complementary
#521F98 #988E1F #29981F
monochromatic
#1B0A32 #371565 #521F98 #6D29CB #8E55DC

Accessibility & contrast

On white

10.46
#521F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#521F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F98
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F98#FFFFFF#000000##FFFFFF
##521F981.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#3E415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #521f98;
/* rgb */ color: rgb(82, 31, 152);
/* oklch */ color: oklch(39.1% 0.180 295.9);
Tailwind
colors: {
  custom: {
    50: '#8a61b7',
    500: '#521f98',
    950: '#000000',
  },
}
SCSS
$custom: #521f98;
$custom-light: #8a61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#521f98",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 265.289,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39146,
    "c": 0.18006,
    "h": 295.9
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#521F98
secondary
#92C053
accent
#E93FA1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #521F98

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

Preview Lab → · Contrast checker → · Palette generator →

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