#522288#522288

#522288 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.159 H 300.3°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#522288
RGBrgb(82, 34, 136)
HSLhsl(268, 60%, 33%)
HSVhsv(268, 75%, 53%)
CMYKcmyk(39.7%, 75%, 0%, 46.7%)
CIE-LABlab(25.91, 42.91, -48.14)
CIE-LCHlch(25.91, 64.49, 311.71°)
OKLaboklab(38.05% 0.0803 -0.1374)
OKLCHoklch(38.05% 0.159 300.3)
XYZxyz(8.4945, 4.7154, 23.7504)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522288 #588822
analogous
#222588 #522288 #852288
triadic
#522288 #885222 #228852
tetradic
#522288 #882225 #588822 #228885
square
#522288 #882225 #588822 #228885
split-complementary
#522288 #888522 #258822
monochromatic
#170A26 #341657 #522288 #702EB9 #8E51D3

Accessibility & contrast

On white

10.81
#522288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#522288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522288
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522288#FFFFFF#000000##FFFFFF
##5222881.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#463C53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522288;
/* rgb */ color: rgb(82, 34, 136);
/* oklch */ color: oklch(38.0% 0.159 300.3);
Tailwind
colors: {
  custom: {
    50: '#8862ab',
    500: '#522288',
    950: '#000000',
  },
}
SCSS
$custom: #522288;
$custom-light: #8862ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522288",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 268.235,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.15915,
    "h": 300.3
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#522288
secondary
#86B74F
accent
#E34599
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522288

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

Preview Lab → · Contrast checker → · Palette generator →

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