#522F77#522F77

#522F77 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.120 H 303.7°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#522F77
RGBrgb(82, 47, 119)
HSLhsl(269, 43%, 33%)
HSVhsv(269, 61%, 47%)
CMYKcmyk(31.1%, 60.5%, 0%, 53.3%)
CIE-LABlab(27.18, 31.38, -35.38)
CIE-LCHlch(27.18, 47.29, 311.57°)
OKLaboklab(38.56% 0.0667 -0.1)
OKLCHoklch(38.56% 0.12 303.7)
XYZxyz(7.8252, 5.1588, 18.0327)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F77 #54772F
analogous
#2F3077 #522F77 #762F77
triadic
#522F77 #77522F #2F7752
tetradic
#522F77 #772F30 #54772F #2F7776
square
#522F77 #772F30 #54772F #2F7776
split-complementary
#522F77 #77762F #30772F
monochromatic
#160C1F #341E4B #522F77 #7040A3 #8F60C0

Accessibility & contrast

On white

10.34
#522F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F77
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F77#FFFFFF#000000##FFFFFF
##522F771.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103F79
Deuteranopia (green-blind)
#1F4075
Tritanopia (blue-blind)
#4B3D4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522f77;
/* rgb */ color: rgb(82, 47, 119);
/* oklch */ color: oklch(38.6% 0.120 303.7);
Tailwind
colors: {
  custom: {
    50: '#85699f',
    500: '#522f77',
    950: '#000000',
  },
}
SCSS
$custom: #522f77;
$custom-light: #85699f;
$custom-dark: #000000;
JSON
{
  "hex": "#522f77",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 269.167,
    "s": 43.373,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38559,
    "c": 0.12015,
    "h": 303.7
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#522F77
secondary
#82A75B
accent
#D35596
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522F77

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

Preview Lab → · Contrast checker → · Palette generator →

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