#522183#522183

#522183 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.155 H 302.2°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#522183
RGBrgb(82, 33, 131)
HSLhsl(270, 60%, 32%)
HSVhsv(270, 75%, 51%)
CMYKcmyk(37.4%, 74.8%, 0%, 48.6%)
CIE-LABlab(25.32, 42.10, -45.96)
CIE-LCHlch(25.32, 62.33, 312.49°)
OKLaboklab(37.5% 0.0824 -0.131)
OKLCHoklch(37.5% 0.155 302.2)
XYZxyz(8.1193, 4.5202, 21.9131)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522183 #528321
analogous
#212183 #522183 #832183
triadic
#522183 #835221 #218352
tetradic
#522183 #832121 #528321 #218383
square
#522183 #832121 #528321 #218383
split-complementary
#522183 #838321 #218321
monochromatic
#150821 #331552 #522183 #712DB4 #8F4CD2

Accessibility & contrast

On white

11.03
#522183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#522183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522183
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522183#FFFFFF#000000##FFFFFF
##5221831.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#483950
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522183;
/* rgb */ color: rgb(82, 33, 131);
/* oklch */ color: oklch(37.5% 0.155 302.2);
Tailwind
colors: {
  custom: {
    50: '#8761a8',
    500: '#522183',
    950: '#000000',
  },
}
SCSS
$custom: #522183;
$custom-light: #8761a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522183",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 270,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37503,
    "c": 0.15474,
    "h": 302.2
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#522183
secondary
#80B54B
accent
#E34594
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522183

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

Preview Lab → · Contrast checker → · Palette generator →

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