#521674#521674

#521674 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.152 H 309.5°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#521674
RGBrgb(82, 22, 116)
HSLhsl(278, 68%, 27%)
HSVhsv(278, 81%, 45%)
CMYKcmyk(29.3%, 81%, 0%, 54.5%)
CIE-LABlab(22.40, 43.23, -41.17)
CIE-LCHlch(22.40, 59.70, 316.39°)
OKLaboklab(35.06% 0.0964 -0.1169)
OKLCHoklch(35.06% 0.152 309.5)
XYZxyz(6.9183, 3.6288, 16.8556)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521674 #387416
analogous
#231674 #521674 #741667
triadic
#521674 #745216 #167452
tetradic
#521674 #742316 #387416 #166774
square
#521674 #742316 #387416 #166774
split-complementary
#521674 #677416 #167423
monochromatic
#12051A #2E0C41 #521674 #7620A7 #9A2DD7

Accessibility & contrast

On white

12.17
#521674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#521674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521674
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521674#FFFFFF#000000##FFFFFF
##5216741.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4D2D45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521674;
/* rgb */ color: rgb(82, 22, 116);
/* oklch */ color: oklch(35.1% 0.152 309.5);
Tailwind
colors: {
  custom: {
    50: '#875b9d',
    500: '#521674',
    950: '#000000',
  },
}
SCSS
$custom: #521674;
$custom-light: #875b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521674",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 278.298,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.15152,
    "h": 309.5
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#521674
secondary
#64AA3C
accent
#EB3D7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521674

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

Preview Lab → · Contrast checker → · Palette generator →

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