#521979#521979

#521979 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.153 H 307.1°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#521979
RGBrgb(82, 25, 121)
HSLhsl(276, 66%, 29%)
HSVhsv(276, 79%, 47%)
CMYKcmyk(32.2%, 79.3%, 0%, 52.5%)
CIE-LABlab(23.24, 43.20, -43.02)
CIE-LCHlch(23.24, 60.97, 315.12°)
OKLaboklab(35.77% 0.0925 -0.1223)
OKLCHoklch(35.77% 0.153 307.1)
XYZxyz(7.2778, 3.8697, 18.4490)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521979 #407919
analogous
#221979 #521979 #791970
triadic
#521979 #795219 #197952
tetradic
#521979 #792219 #407919 #197079
square
#521979 #792219 #407919 #197079
split-complementary
#521979 #707919 #197922
monochromatic
#110519 #300F46 #521979 #7423AC #9537D6

Accessibility & contrast

On white

11.84
#521979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#521979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521979
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521979#FFFFFF#000000##FFFFFF
##5219791.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#4B3148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #521979;
/* rgb */ color: rgb(82, 25, 121);
/* oklch */ color: oklch(35.8% 0.153 307.1);
Tailwind
colors: {
  custom: {
    50: '#875da0',
    500: '#521979',
    950: '#000000',
  },
}
SCSS
$custom: #521979;
$custom-light: #875da0;
$custom-dark: #000000;
JSON
{
  "hex": "#521979",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 275.625,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35773,
    "c": 0.15335,
    "h": 307.1
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#521979
secondary
#6DAE40
accent
#E93F84
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #521979

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

Preview Lab → · Contrast checker → · Palette generator →

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