#522678#522678

#522678 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.135 H 305.4°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#522678
RGBrgb(82, 38, 120)
HSLhsl(272, 52%, 31%)
HSVhsv(272, 68%, 47%)
CMYKcmyk(31.7%, 68.3%, 0%, 52.9%)
CIE-LABlab(25.37, 36.73, -38.93)
CIE-LCHlch(25.37, 53.52, 313.34°)
OKLaboklab(37.27% 0.0784 -0.1104)
OKLCHoklch(37.27% 0.135 305.4)
XYZxyz(7.5622, 4.5362, 18.2428)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522678 #4C7826
analogous
#292678 #522678 #782675
triadic
#522678 #785226 #267852
tetradic
#522678 #782926 #4C7826 #267578
square
#522678 #782926 #4C7826 #267578
split-complementary
#522678 #757826 #267829
monochromatic
#12091B #32174A #522678 #7235A6 #9151C8

Accessibility & contrast

On white

11.01
#522678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#522678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522678
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522678#FFFFFF#000000##FFFFFF
##5226781.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#0F3C76
Tritanopia (blue-blind)
#4B384B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522678;
/* rgb */ color: rgb(82, 38, 120);
/* oklch */ color: oklch(37.3% 0.135 305.4);
Tailwind
colors: {
  custom: {
    50: '#86639f',
    500: '#522678',
    950: '#000000',
  },
}
SCSS
$custom: #522678;
$custom-light: #86639f;
$custom-dark: #000000;
JSON
{
  "hex": "#522678",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 120
  },
  "hsl": {
    "h": 272.195,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37266,
    "c": 0.13538,
    "h": 305.4
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#522678
secondary
#7AAA50
accent
#DB4C8F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #522678

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

Preview Lab → · Contrast checker → · Palette generator →

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