#522489#522489

#522489 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.158 H 299.6°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#522489
RGBrgb(82, 36, 137)
HSLhsl(267, 58%, 34%)
HSVhsv(267, 74%, 54%)
CMYKcmyk(40.1%, 73.7%, 0%, 46.3%)
CIE-LABlab(26.34, 42.20, -48.06)
CIE-LCHlch(26.34, 63.96, 311.28°)
OKLaboklab(38.38% 0.0781 -0.1372)
OKLCHoklch(38.38% 0.158 299.6)
XYZxyz(8.6248, 4.8616, 24.1461)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522489 #5B8924
analogous
#242889 #522489 #852489
triadic
#522489 #895224 #248952
tetradic
#522489 #892428 #5B8924 #248985
square
#522489 #892428 #5B8924 #248985
split-complementary
#522489 #898524 #288924
monochromatic
#180B28 #351759 #522489 #6F31B9 #8E55D2

Accessibility & contrast

On white

10.65
#522489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522489
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522489#FFFFFF#000000##FFFFFF
##5224891.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522489;
/* rgb */ color: rgb(82, 36, 137);
/* oklch */ color: oklch(38.4% 0.158 299.6);
Tailwind
colors: {
  custom: {
    50: '#8863ac',
    500: '#522489',
    950: '#000000',
  },
}
SCSS
$custom: #522489;
$custom-light: #8863ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522489",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 267.327,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38378,
    "c": 0.15785,
    "h": 299.6
  },
  "luminance": 0.04862
}

Semantic roles & 50–950 ramp

primary
#522489
secondary
#89B752
accent
#E2469B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522489

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

Preview Lab → · Contrast checker → · Palette generator →

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