#522F95#522F95

#522F95 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.158 H 294.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#522F95
RGBrgb(82, 47, 149)
HSLhsl(261, 52%, 38%)
HSVhsv(261, 68%, 58%)
CMYKcmyk(45%, 68.5%, 0%, 41.6%)
CIE-LABlab(29.40, 39.70, -50.49)
CIE-LCHlch(29.40, 64.23, 308.18°)
OKLaboklab(40.87% 0.0644 -0.1444)
OKLCHoklch(40.87% 0.158 294)
XYZxyz(9.9195, 5.9965, 29.0627)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F95 #72952F
analogous
#2F3F95 #522F95 #852F95
triadic
#522F95 #95522F #2F9552
tetradic
#522F95 #952F3F #72952F #2F9585
square
#522F95 #952F3F #72952F #2F9585
split-complementary
#522F95 #95852F #3F952F
monochromatic
#1F1238 #382066 #522F95 #6C3FC2 #906DD1

Accessibility & contrast

On white

9.55
#522F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F95
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F95#FFFFFF#000000##FFFFFF
##522F951.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#3F485E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522f95;
/* rgb */ color: rgb(82, 47, 149);
/* oklch */ color: oklch(40.9% 0.158 294.0);
Tailwind
colors: {
  custom: {
    50: '#896ab5',
    500: '#522f95',
    950: '#000000',
  },
}
SCSS
$custom: #522f95;
$custom-light: #896ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#522f95",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 260.588,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40873,
    "c": 0.15807,
    "h": 294
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#522F95
secondary
#9DB867
accent
#DB4CAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522F95

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

Preview Lab → · Contrast checker → · Palette generator →

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