#522888#522888

#522888 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.152 H 299.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#522888
RGBrgb(82, 40, 136)
HSLhsl(266, 55%, 35%)
HSVhsv(266, 71%, 53%)
CMYKcmyk(39.7%, 70.6%, 0%, 46.7%)
CIE-LABlab(26.99, 39.89, -46.38)
CIE-LCHlch(26.99, 61.18, 310.69°)
OKLaboklab(38.81% 0.074 -0.1323)
OKLCHoklch(38.81% 0.152 299.2)
XYZxyz(8.6813, 5.0889, 23.8127)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522888 #5E8828
analogous
#282E88 #522888 #822888
triadic
#522888 #885228 #288852
tetradic
#522888 #88282E #5E8828 #288882
square
#522888 #88282E #5E8828 #288882
split-complementary
#522888 #888228 #2E8828
monochromatic
#190C29 #351A59 #522888 #6F36B7 #8E5BCF

Accessibility & contrast

On white

10.41
#522888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#522888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522888
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522888#FFFFFF#000000##FFFFFF
##5228881.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#453F55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522888;
/* rgb */ color: rgb(82, 40, 136);
/* oklch */ color: oklch(38.8% 0.152 299.2);
Tailwind
colors: {
  custom: {
    50: '#8765ab',
    500: '#522888',
    950: '#000000',
  },
}
SCSS
$custom: #522888;
$custom-light: #8765ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522888",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 266.25,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38814,
    "c": 0.15157,
    "h": 299.2
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#522888
secondary
#8CB458
accent
#DE4A9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522888

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

Preview Lab → · Contrast checker → · Palette generator →

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