#521074#521074

#521074 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.157 H 310.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#521074
RGBrgb(82, 16, 116)
HSLhsl(280, 76%, 26%)
HSVhsv(280, 86%, 45%)
CMYKcmyk(29.3%, 86.2%, 0%, 54.5%)
CIE-LABlab(21.67, 45.35, -42.36)
CIE-LCHlch(21.67, 62.06, 316.95°)
OKLaboklab(34.55% 0.1014 -0.1203)
OKLCHoklch(34.55% 0.157 310.1)
XYZxyz(6.8167, 3.4255, 16.8217)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521074 #327410
analogous
#201074 #521074 #741064
triadic
#521074 #745210 #107452
tetradic
#521074 #742010 #327410 #106474
square
#521074 #742010 #327410 #106474
split-complementary
#521074 #647410 #107420
monochromatic
#13041B #2C093E #521074 #7817AA #9E1FE0

Accessibility & contrast

On white

12.46
#521074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#521074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521074
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521074#FFFFFF#000000##FFFFFF
##5210741.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#4D2B44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521074;
/* rgb */ color: rgb(82, 16, 116);
/* oklch */ color: oklch(34.5% 0.157 310.1);
Tailwind
colors: {
  custom: {
    50: '#87599d',
    500: '#521074',
    950: '#000000',
  },
}
SCSS
$custom: #521074;
$custom-light: #87599d;
$custom-dark: #000000;
JSON
{
  "hex": "#521074",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 279.6,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34548,
    "c": 0.15734,
    "h": 310.1
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#521074
secondary
#5DAB35
accent
#F23576
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521074

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

Preview Lab → · Contrast checker → · Palette generator →

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