#521985#521985

#521985 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.166 H 302.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#521985
RGBrgb(82, 25, 133)
HSLhsl(272, 68%, 31%)
HSVhsv(272, 81%, 52%)
CMYKcmyk(38.3%, 81.2%, 0%, 47.8%)
CIE-LABlab(24.27, 46.11, -48.94)
CIE-LCHlch(24.27, 67.24, 313.30°)
OKLaboklab(36.81% 0.0893 -0.1397)
OKLCHoklch(36.81% 0.166 302.6)
XYZxyz(8.0599, 4.1825, 22.5684)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521985 #4C8519
analogous
#1C1985 #521985 #851982
triadic
#521985 #855219 #198552
tetradic
#521985 #851C19 #4C8519 #198285
square
#521985 #851C19 #4C8519 #198285
split-complementary
#521985 #828519 #19851C
monochromatic
#12061E #320F51 #521985 #7223B9 #913EDB

Accessibility & contrast

On white

11.43
#521985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#521985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521985
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521985#FFFFFF#000000##FFFFFF
##5219851.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#47364F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521985;
/* rgb */ color: rgb(82, 25, 133);
/* oklch */ color: oklch(36.8% 0.166 302.6);
Tailwind
colors: {
  custom: {
    50: '#885da9',
    500: '#521985',
    950: '#000000',
  },
}
SCSS
$custom: #521985;
$custom-light: #885da9;
$custom-dark: #000000;
JSON
{
  "hex": "#521985",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 271.667,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36814,
    "c": 0.16581,
    "h": 302.6
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#521985
secondary
#7AB941
accent
#EB3D8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521985

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

Preview Lab → · Contrast checker → · Palette generator →

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