#522272#522272

#522272 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.134 H 308.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#522272
RGBrgb(82, 34, 114)
HSLhsl(276, 54%, 29%)
HSVhsv(276, 70%, 45%)
CMYKcmyk(28.1%, 70.2%, 0%, 55.3%)
CIE-LABlab(24.17, 37.31, -37.03)
CIE-LCHlch(24.17, 52.57, 315.22°)
OKLaboklab(36.26% 0.0839 -0.1048)
OKLCHoklch(36.26% 0.134 308.7)
XYZxyz(7.0884, 4.1529, 16.3445)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522272 #427222
analogous
#2A2272 #522272 #72226A
triadic
#522272 #725222 #227252
tetradic
#522272 #722A22 #427222 #226A72
square
#522272 #722A22 #427222 #226A72
split-complementary
#522272 #6A7222 #22722A
monochromatic
#110718 #301443 #522272 #7430A1 #9446C8

Accessibility & contrast

On white

11.47
#522272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#522272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522272
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522272#FFFFFF#000000##FFFFFF
##5222721.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#133A70
Tritanopia (blue-blind)
#4D3347
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522272;
/* rgb */ color: rgb(82, 34, 114);
/* oklch */ color: oklch(36.3% 0.134 308.7);
Tailwind
colors: {
  custom: {
    50: '#86619b',
    500: '#522272',
    950: '#000000',
  },
}
SCSS
$custom: #522272;
$custom-light: #86619b;
$custom-dark: #000000;
JSON
{
  "hex": "#522272",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 276,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36264,
    "c": 0.13424,
    "h": 308.7
  },
  "luminance": 0.04153
}

Semantic roles & 50–950 ramp

primary
#522272
secondary
#6FA54B
accent
#DD4A85
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522272

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

Preview Lab → · Contrast checker → · Palette generator →

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