#522A70#522A70

#522A70 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 37.3% C 0.120 H 308.0°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#522A70
RGBrgb(82, 42, 112)
HSLhsl(274, 45%, 30%)
HSVhsv(274, 63%, 44%)
CMYKcmyk(26.8%, 62.5%, 0%, 56.1%)
CIE-LABlab(25.62, 32.46, -33.42)
CIE-LCHlch(25.62, 46.59, 314.17°)
OKLaboklab(37.27% 0.0736 -0.0942)
OKLCHoklch(37.27% 0.12 308)
XYZxyz(7.2317, 4.6197, 15.8368)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A70 #48702A
analogous
#2F2A70 #522A70 #702A6B
triadic
#522A70 #70522A #2A7052
tetradic
#522A70 #702F2A #48702A #2A6B70
square
#522A70 #702F2A #48702A #2A6B70
split-complementary
#522A70 #6B702A #2A702F
monochromatic
#110917 #311943 #522A70 #733B9D #9255BF

Accessibility & contrast

On white

10.91
#522A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#522A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A70
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A70#FFFFFF#000000##FFFFFF
##522A701.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3B72
Deuteranopia (green-blind)
#1F3D6E
Tritanopia (blue-blind)
#4D3748
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522a70;
/* rgb */ color: rgb(82, 42, 112);
/* oklch */ color: oklch(37.3% 0.120 308.0);
Tailwind
colors: {
  custom: {
    50: '#856699',
    500: '#522a70',
    950: '#000000',
  },
}
SCSS
$custom: #522a70;
$custom-light: #856699;
$custom-dark: #000000;
JSON
{
  "hex": "#522a70",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 274.286,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.11952,
    "h": 308
  },
  "luminance": 0.0462
}

Semantic roles & 50–950 ramp

primary
#522A70
secondary
#75A254
accent
#D5538B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A70

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

Preview Lab → · Contrast checker → · Palette generator →

#522A70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva