#521FA5#521FA5

#521FA5 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.194 H 292.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#521FA5
RGBrgb(82, 31, 165)
HSLhsl(263, 68%, 38%)
HSVhsv(263, 81%, 65%)
CMYKcmyk(50.3%, 81.2%, 0%, 35.3%)
CIE-LABlab(28.09, 51.84, -62.39)
CIE-LCHlch(28.09, 81.12, 309.72°)
OKLaboklab(40.38% 0.0745 -0.1792)
OKLCHoklch(40.38% 0.194 292.6)
XYZxyz(10.7593, 5.4900, 36.0828)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521FA5 #72A51F
analogous
#1F2FA5 #521FA5 #951FA5
triadic
#521FA5 #A5521F #1FA552
tetradic
#521FA5 #A51F2F #72A51F #1FA595
square
#521FA5 #A51F2F #72A51F #1FA595
split-complementary
#521FA5 #A5951F #2FA51F
monochromatic
#1F0C3E #381571 #521FA5 #6C2AD7 #905EE1

Accessibility & contrast

On white

10.01
#521FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#521FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521FA5
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521FA5#FFFFFF#000000##FFFFFF
##521FA51.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#374663
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #521fa5;
/* rgb */ color: rgb(82, 31, 165);
/* oklch */ color: oklch(40.4% 0.194 292.6);
Tailwind
colors: {
  custom: {
    50: '#8c62c1',
    500: '#521fa5',
    950: '#000000',
  },
}
SCSS
$custom: #521fa5;
$custom-light: #8c62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#521fa5",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 262.836,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.19408,
    "h": 292.6
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

primary
#521FA5
secondary
#9DC55B
accent
#EB3DA9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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