#522385#522385

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

Color values

HEX#522385
RGBrgb(82, 35, 133)
HSLhsl(269, 58%, 33%)
HSVhsv(269, 74%, 52%)
CMYKcmyk(38.3%, 73.7%, 0%, 47.8%)
CIE-LABlab(25.83, 41.64, -46.39)
CIE-LCHlch(25.83, 62.34, 311.91°)
OKLaboklab(37.92% 0.0799 -0.1323)
OKLCHoklch(37.92% 0.155 301.1)
XYZxyz(8.3133, 4.6893, 22.6529)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522385 #568523
analogous
#232585 #522385 #832385
triadic
#522385 #855223 #238552
tetradic
#522385 #852325 #568523 #238583
square
#522385 #852325 #568523 #238583
split-complementary
#522385 #858323 #258523
monochromatic
#160924 #341655 #522385 #7030B5 #8F51D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522385#FFFFFF#000000##FFFFFF
##5223851.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)
#003D88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#473B51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522385;
/* rgb */ color: rgb(82, 35, 133);
/* oklch */ color: oklch(37.9% 0.155 301.1);
Tailwind
colors: {
  custom: {
    50: '#8762a9',
    500: '#522385',
    950: '#000000',
  },
}
SCSS
$custom: #522385;
$custom-light: #8762a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522385",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 268.776,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37915,
    "c": 0.15453,
    "h": 301.1
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#522385
secondary
#84B54F
accent
#E24697
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522385

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

Preview Lab → · Contrast checker → · Palette generator →

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