#522289#522289

#522289 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.160 H 300.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#522289
RGBrgb(82, 34, 137)
HSLhsl(268, 60%, 34%)
HSVhsv(268, 75%, 54%)
CMYKcmyk(40.1%, 75.2%, 0%, 46.3%)
CIE-LABlab(25.99, 43.17, -48.62)
CIE-LCHlch(25.99, 65.02, 311.60°)
OKLaboklab(38.13% 0.0801 -0.1388)
OKLCHoklch(38.13% 0.16 300)
XYZxyz(8.5659, 4.7439, 24.1264)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522289 #598922
analogous
#222589 #522289 #852289
triadic
#522289 #895222 #228952
tetradic
#522289 #892225 #598922 #228985
square
#522289 #892225 #598922 #228985
split-complementary
#522289 #898522 #258922
monochromatic
#170A27 #351658 #522289 #6F2EBA #8E51D4

Accessibility & contrast

On white

10.78
#522289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522289
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522289#FFFFFF#000000##FFFFFF
##5222891.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#453C53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522289;
/* rgb */ color: rgb(82, 34, 137);
/* oklch */ color: oklch(38.1% 0.160 300.0);
Tailwind
colors: {
  custom: {
    50: '#8862ac',
    500: '#522289',
    950: '#000000',
  },
}
SCSS
$custom: #522289;
$custom-light: #8862ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522289",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 267.961,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38134,
    "c": 0.16027,
    "h": 300
  },
  "luminance": 0.04744
}

Semantic roles & 50–950 ramp

primary
#522289
secondary
#87B84F
accent
#E34499
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522289

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

Preview Lab → · Contrast checker → · Palette generator →

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