#521374#521374

#521374 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.155 H 309.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#521374
RGBrgb(82, 19, 116)
HSLhsl(279, 72%, 26%)
HSVhsv(279, 84%, 45%)
CMYKcmyk(29.3%, 83.6%, 0%, 54.5%)
CIE-LABlab(22.02, 44.34, -41.80)
CIE-LCHlch(22.02, 60.94, 316.69°)
OKLaboklab(34.79% 0.0991 -0.1187)
OKLCHoklch(34.79% 0.155 309.9)
XYZxyz(6.8643, 3.5207, 16.8376)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521374 #357413
analogous
#221374 #521374 #741366
triadic
#521374 #745213 #137452
tetradic
#521374 #742213 #357413 #136674
square
#521374 #742213 #357413 #136674
split-complementary
#521374 #667413 #137422
monochromatic
#13041A #2D0A3F #521374 #771CA9 #9C26DB

Accessibility & contrast

On white

12.32
#521374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521374
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521374#FFFFFF#000000##FFFFFF
##5213741.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4D2C44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #521374;
/* rgb */ color: rgb(82, 19, 116);
/* oklch */ color: oklch(34.8% 0.155 309.9);
Tailwind
colors: {
  custom: {
    50: '#875a9d',
    500: '#521374',
    950: '#000000',
  },
}
SCSS
$custom: #521374;
$custom-light: #875a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521374",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 278.969,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34789,
    "c": 0.15458,
    "h": 309.9
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#521374
secondary
#60AA38
accent
#EF3979
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521374

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

Preview Lab → · Contrast checker → · Palette generator →

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