#521174#521174

#521174 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.156 H 310.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#521174
RGBrgb(82, 17, 116)
HSLhsl(279, 74%, 26%)
HSVhsv(279, 85%, 45%)
CMYKcmyk(29.3%, 85.3%, 0%, 54.5%)
CIE-LABlab(21.78, 45.03, -42.18)
CIE-LCHlch(21.78, 61.70, 316.87°)
OKLaboklab(34.63% 0.1007 -0.1198)
OKLCHoklch(34.63% 0.156 310)
XYZxyz(6.8319, 3.4558, 16.8268)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521174 #337411
analogous
#201174 #521174 #741164
triadic
#521174 #745211 #117452
tetradic
#521174 #742011 #337411 #116474
square
#521174 #742011 #337411 #116474
split-complementary
#521174 #647411 #117420
monochromatic
#13041B #2C093F #521174 #7819A9 #9D21DE

Accessibility & contrast

On white

12.42
#521174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521174
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521174#FFFFFF#000000##FFFFFF
##5211741.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521174;
/* rgb */ color: rgb(82, 17, 116);
/* oklch */ color: oklch(34.6% 0.156 310.0);
Tailwind
colors: {
  custom: {
    50: '#87599d',
    500: '#521174',
    950: '#000000',
  },
}
SCSS
$custom: #521174;
$custom-light: #87599d;
$custom-dark: #000000;
JSON
{
  "hex": "#521174",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 279.394,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34626,
    "c": 0.15646,
    "h": 310
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#521174
secondary
#5EAB36
accent
#F13777
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521174

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

Preview Lab → · Contrast checker → · Palette generator →

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