#522287#522287

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

Color values

HEX#522287
RGBrgb(82, 34, 135)
HSLhsl(269, 60%, 33%)
HSVhsv(269, 75%, 53%)
CMYKcmyk(39.3%, 74.8%, 0%, 47.1%)
CIE-LABlab(25.82, 42.65, -47.65)
CIE-LCHlch(25.82, 63.95, 311.83°)
OKLaboklab(37.96% 0.0805 -0.136)
OKLCHoklch(37.96% 0.158 300.6)
XYZxyz(8.4238, 4.6871, 23.3779)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522287 #578722
analogous
#222487 #522287 #842287
triadic
#522287 #875222 #228752
tetradic
#522287 #872224 #578722 #228784
square
#522287 #872224 #578722 #228784
split-complementary
#522287 #878422 #248722
monochromatic
#170925 #341656 #522287 #702EB8 #8E50D3

Accessibility & contrast

On white

10.84
#522287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522287
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522287#FFFFFF#000000##FFFFFF
##5222871.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#463B52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522287;
/* rgb */ color: rgb(82, 34, 135);
/* oklch */ color: oklch(38.0% 0.158 300.6);
Tailwind
colors: {
  custom: {
    50: '#8862ab',
    500: '#522287',
    950: '#000000',
  },
}
SCSS
$custom: #522287;
$custom-light: #8862ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522287",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 268.515,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37962,
    "c": 0.15802,
    "h": 300.6
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#522287
secondary
#85B74E
accent
#E34598
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522287

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

Preview Lab → · Contrast checker → · Palette generator →

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