#522F72#522F72

#522F72 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.2% C 0.114 H 305.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#522F72
RGBrgb(82, 47, 114)
HSLhsl(271, 42%, 32%)
HSVhsv(271, 59%, 45%)
CMYKcmyk(28.1%, 58.8%, 0%, 55.3%)
CIE-LABlab(26.85, 30.06, -32.73)
CIE-LCHlch(26.85, 44.44, 312.57°)
OKLaboklab(38.21% 0.0666 -0.0922)
OKLCHoklch(38.21% 0.114 305.8)
XYZxyz(7.5328, 5.0418, 16.4927)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F72 #4F722F
analogous
#312F72 #522F72 #722F71
triadic
#522F72 #72522F #2F7252
tetradic
#522F72 #72312F #4F722F #2F7172
square
#522F72 #72312F #4F722F #2F7172
split-complementary
#522F72 #71722F #2F7231
monochromatic
#140B1B #331D47 #522F72 #71419D #905FBD

Accessibility & contrast

On white

10.46
#522F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F72
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F72#FFFFFF#000000##FFFFFF
##522F721.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E74
Deuteranopia (green-blind)
#234070
Tritanopia (blue-blind)
#4D3C4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522f72;
/* rgb */ color: rgb(82, 47, 114);
/* oklch */ color: oklch(38.2% 0.114 305.8);
Tailwind
colors: {
  custom: {
    50: '#85699b',
    500: '#522f72',
    950: '#000000',
  },
}
SCSS
$custom: #522f72;
$custom-light: #85699b;
$custom-dark: #000000;
JSON
{
  "hex": "#522f72",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 271.343,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38213,
    "c": 0.11371,
    "h": 305.8
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#522F72
secondary
#7DA35A
accent
#D15691
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522F72

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

Preview Lab → · Contrast checker → · Palette generator →

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