#522688#522688

#522688 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.154 H 299.6°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#522688
RGBrgb(82, 38, 136)
HSLhsl(267, 56%, 34%)
HSVhsv(267, 72%, 53%)
CMYKcmyk(39.7%, 72.1%, 0%, 46.7%)
CIE-LABlab(26.61, 40.93, -46.99)
CIE-LCHlch(26.61, 62.31, 311.05°)
OKLaboklab(38.55% 0.0762 -0.134)
OKLCHoklch(38.55% 0.154 299.6)
XYZxyz(8.6156, 4.9575, 23.7908)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522688 #5C8826
analogous
#262B88 #522688 #832688
triadic
#522688 #885226 #268852
tetradic
#522688 #88262B #5C8826 #268883
square
#522688 #88262B #5C8826 #268883
split-complementary
#522688 #888326 #2B8826
monochromatic
#180B28 #351958 #522688 #6F33B8 #8E58D0

Accessibility & contrast

On white

10.54
#522688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522688
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522688#FFFFFF#000000##FFFFFF
##5226881.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#463E54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522688;
/* rgb */ color: rgb(82, 38, 136);
/* oklch */ color: oklch(38.5% 0.154 299.6);
Tailwind
colors: {
  custom: {
    50: '#8864ab',
    500: '#522688',
    950: '#000000',
  },
}
SCSS
$custom: #522688;
$custom-light: #8864ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522688",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 266.939,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38548,
    "c": 0.15417,
    "h": 299.6
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#522688
secondary
#8AB555
accent
#E0489C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522688

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

Preview Lab → · Contrast checker → · Palette generator →

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