#522370#522370

#522370 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.130 H 309.4°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#522370
RGBrgb(82, 35, 112)
HSLhsl(277, 52%, 29%)
HSVhsv(277, 69%, 44%)
CMYKcmyk(26.8%, 68.8%, 0%, 56.1%)
CIE-LABlab(24.21, 36.30, -35.68)
CIE-LCHlch(24.21, 50.90, 315.49°)
OKLaboklab(36.25% 0.0829 -0.1008)
OKLCHoklch(36.25% 0.13 309.4)
XYZxyz(7.0048, 4.1659, 15.7612)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522370 #417023
analogous
#2C2370 #522370 #702368
triadic
#522370 #705223 #237052
tetradic
#522370 #702C23 #417023 #236870
square
#522370 #702C23 #417023 #236870
split-complementary
#522370 #687023 #23702C
monochromatic
#110717 #301441 #522370 #74329F #9548C6

Accessibility & contrast

On white

11.46
#522370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#522370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522370
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522370#FFFFFF#000000##FFFFFF
##5223701.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#173A6E
Tritanopia (blue-blind)
#4E3346
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522370;
/* rgb */ color: rgb(82, 35, 112);
/* oklch */ color: oklch(36.2% 0.130 309.4);
Tailwind
colors: {
  custom: {
    50: '#86619a',
    500: '#522370',
    950: '#000000',
  },
}
SCSS
$custom: #522370;
$custom-light: #86619a;
$custom-dark: #000000;
JSON
{
  "hex": "#522370",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 112
  },
  "hsl": {
    "h": 276.623,
    "s": 52.381,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36248,
    "c": 0.13049,
    "h": 309.4
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#522370
secondary
#6EA34C
accent
#DC4C84
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522370

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

Preview Lab → · Contrast checker → · Palette generator →

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