#522697#522697

#522697 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.172 H 295.2°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#522697
RGBrgb(82, 38, 151)
HSLhsl(263, 60%, 37%)
HSVhsv(263, 75%, 59%)
CMYKcmyk(45.7%, 74.8%, 0%, 40.8%)
CIE-LABlab(27.88, 44.96, -54.20)
CIE-LCHlch(27.88, 70.42, 309.68°)
OKLaboklab(39.84% 0.073 -0.1552)
OKLCHoklch(39.84% 0.172 295.2)
XYZxyz(9.7572, 5.4142, 29.8031)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522697 #6B9726
analogous
#263397 #522697 #8B2697
triadic
#522697 #975226 #269752
tetradic
#522697 #972633 #6B9726 #26978B
square
#522697 #972633 #6B9726 #26978B
split-complementary
#522697 #978B26 #339726
monochromatic
#1D0D35 #371A66 #522697 #6D32C8 #8F60D7

Accessibility & contrast

On white

10.08
#522697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522697
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522697#FFFFFF#000000##FFFFFF
##5226971.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#3F445C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522697;
/* rgb */ color: rgb(82, 38, 151);
/* oklch */ color: oklch(39.8% 0.172 295.2);
Tailwind
colors: {
  custom: {
    50: '#8965b7',
    500: '#522697',
    950: '#000000',
  },
}
SCSS
$custom: #522697;
$custom-light: #8965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522697",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 263.363,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39843,
    "c": 0.17153,
    "h": 295.2
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#522697
secondary
#97BC5C
accent
#E345A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522697

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

Preview Lab → · Contrast checker → · Palette generator →

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