#521874#521874

#521874 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.149 H 309.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#521874
RGBrgb(82, 24, 116)
HSLhsl(278, 66%, 27%)
HSVhsv(278, 79%, 45%)
CMYKcmyk(29.3%, 79.3%, 0%, 54.5%)
CIE-LABlab(22.68, 42.43, -40.72)
CIE-LCHlch(22.68, 58.81, 316.18°)
OKLaboklab(35.25% 0.0946 -0.1155)
OKLCHoklch(35.25% 0.149 309.3)
XYZxyz(6.9581, 3.7082, 16.8688)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521874 #3A7418
analogous
#241874 #521874 #741868
triadic
#521874 #745218 #187452
tetradic
#521874 #742418 #3A7418 #186874
square
#521874 #742418 #3A7418 #186874
split-complementary
#521874 #687418 #187424
monochromatic
#120519 #2E0E41 #521874 #7622A7 #9832D5

Accessibility & contrast

On white

12.06
#521874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#521874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521874
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521874#FFFFFF#000000##FFFFFF
##5218741.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#4D2E45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521874;
/* rgb */ color: rgb(82, 24, 116);
/* oklch */ color: oklch(35.3% 0.149 309.3);
Tailwind
colors: {
  custom: {
    50: '#875c9d',
    500: '#521874',
    950: '#000000',
  },
}
SCSS
$custom: #521874;
$custom-light: #875c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521874",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 277.826,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35255,
    "c": 0.14931,
    "h": 309.3
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#521874
secondary
#66A93F
accent
#E93F7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521874

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

Preview Lab → · Contrast checker → · Palette generator →

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