#522283#522283

#522283 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.154 H 302.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#522283
RGBrgb(82, 34, 131)
HSLhsl(270, 59%, 32%)
HSVhsv(270, 74%, 51%)
CMYKcmyk(37.4%, 74%, 0%, 48.6%)
CIE-LABlab(25.49, 41.61, -45.68)
CIE-LCHlch(25.49, 61.79, 312.33°)
OKLaboklab(37.62% 0.0813 -0.1302)
OKLCHoklch(37.62% 0.154 302)
XYZxyz(8.1475, 4.5766, 21.9225)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522283 #538322
analogous
#222283 #522283 #832283
triadic
#522283 #835222 #228352
tetradic
#522283 #832222 #538322 #228383
square
#522283 #832222 #538322 #228383
split-complementary
#522283 #838322 #228322
monochromatic
#150922 #341552 #522283 #702FB4 #8F4ED1

Accessibility & contrast

On white

10.96
#522283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#522283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522283
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522283#FFFFFF#000000##FFFFFF
##5222831.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#483A50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522283;
/* rgb */ color: rgb(82, 34, 131);
/* oklch */ color: oklch(37.6% 0.154 302.0);
Tailwind
colors: {
  custom: {
    50: '#8762a8',
    500: '#522283',
    950: '#000000',
  },
}
SCSS
$custom: #522283;
$custom-light: #8762a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522283",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 269.691,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37624,
    "c": 0.15351,
    "h": 302
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#522283
secondary
#81B44C
accent
#E24695
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522283

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

Preview Lab → · Contrast checker → · Palette generator →

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