#522389#522389

#522389 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.159 H 299.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#522389
RGBrgb(82, 35, 137)
HSLhsl(268, 59%, 34%)
HSVhsv(268, 74%, 54%)
CMYKcmyk(40.1%, 74.5%, 0%, 46.3%)
CIE-LABlab(26.16, 42.69, -48.35)
CIE-LCHlch(26.16, 64.49, 311.44°)
OKLaboklab(38.25% 0.0791 -0.138)
OKLCHoklch(38.25% 0.159 299.8)
XYZxyz(8.5949, 4.8020, 24.1361)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522389 #5A8923
analogous
#232789 #522389 #852389
triadic
#522389 #895223 #238952
tetradic
#522389 #892327 #5A8923 #238985
square
#522389 #892327 #5A8923 #238985
split-complementary
#522389 #898523 #278923
monochromatic
#180A28 #351758 #522389 #6F2FBA #8E53D3

Accessibility & contrast

On white

10.71
#522389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#522389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522389
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522389#FFFFFF#000000##FFFFFF
##5223891.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.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: #522389;
/* rgb */ color: rgb(82, 35, 137);
/* oklch */ color: oklch(38.3% 0.159 299.8);
Tailwind
colors: {
  custom: {
    50: '#8862ac',
    500: '#522389',
    950: '#000000',
  },
}
SCSS
$custom: #522389;
$custom-light: #8862ac;
$custom-dark: #000000;
JSON
{
  "hex": "#522389",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 137
  },
  "hsl": {
    "h": 267.647,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38254,
    "c": 0.15907,
    "h": 299.8
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#522389
secondary
#88B751
accent
#E2459A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522389

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

Preview Lab → · Contrast checker → · Palette generator →

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