#522F71#522F71

#522F71 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.1% C 0.112 H 306.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#522F71
RGBrgb(82, 47, 113)
HSLhsl(272, 41%, 31%)
HSVhsv(272, 58%, 44%)
CMYKcmyk(27.4%, 58.4%, 0%, 55.7%)
CIE-LABlab(26.79, 29.79, -32.19)
CIE-LCHlch(26.79, 43.86, 312.79°)
OKLaboklab(38.15% 0.0665 -0.0906)
OKLCHoklch(38.15% 0.112 306.3)
XYZxyz(7.4762, 5.0192, 16.1945)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F71 #4E712F
analogous
#312F71 #522F71 #712F6F
triadic
#522F71 #71522F #2F7152
tetradic
#522F71 #71312F #4E712F #2F6F71
square
#522F71 #71312F #4E712F #2F6F71
split-complementary
#522F71 #6F712F #2F7131
monochromatic
#130B1B #331D46 #522F71 #71419C #905EBC

Accessibility & contrast

On white

10.48
#522F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F71
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F71#FFFFFF#000000##FFFFFF
##522F711.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#24406F
Tritanopia (blue-blind)
#4D3B4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522f71;
/* rgb */ color: rgb(82, 47, 113);
/* oklch */ color: oklch(38.1% 0.112 306.3);
Tailwind
colors: {
  custom: {
    50: '#85699a',
    500: '#522f71',
    950: '#000000',
  },
}
SCSS
$custom: #522f71;
$custom-light: #85699a;
$custom-dark: #000000;
JSON
{
  "hex": "#522f71",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 271.818,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38145,
    "c": 0.11242,
    "h": 306.3
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#522F71
secondary
#7CA25A
accent
#D15790
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522F71

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

Preview Lab → · Contrast checker → · Palette generator →

#522F71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva