#522665#522665

#522665 is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.9% C 0.113 H 314.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#522665
RGBrgb(82, 38, 101)
HSLhsl(282, 45%, 27%)
HSVhsv(282, 62%, 40%)
CMYKcmyk(18.8%, 62.4%, 0%, 60.4%)
CIE-LABlab(24.06, 32.01, -28.80)
CIE-LCHlch(24.06, 43.06, 318.02°)
OKLaboklab(35.9% 0.0791 -0.0807)
OKLCHoklch(35.9% 0.113 314.4)
XYZxyz(6.5214, 4.1198, 12.7611)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522665 #396526
analogous
#332665 #522665 #652659
triadic
#522665 #655226 #266552
tetradic
#522665 #653326 #396526 #265965
square
#522665 #653326 #396526 #265965
split-complementary
#522665 #596526 #266533
monochromatic
#120816 #2E1539 #522665 #763791 #994ABB

Accessibility & contrast

On white

11.51
#522665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#522665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522665
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522665#FFFFFF#000000##FFFFFF
##5226651.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133767
Deuteranopia (green-blind)
#243A63
Tritanopia (blue-blind)
#503141
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522665;
/* rgb */ color: rgb(82, 38, 101);
/* oklch */ color: oklch(35.9% 0.113 314.4);
Tailwind
colors: {
  custom: {
    50: '#856391',
    500: '#522665',
    950: '#000000',
  },
}
SCSS
$custom: #522665;
$custom-light: #856391;
$custom-dark: #000000;
JSON
{
  "hex": "#522665",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 101
  },
  "hsl": {
    "h": 281.905,
    "s": 45.324,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35902,
    "c": 0.11296,
    "h": 314.4
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#522665
secondary
#65984F
accent
#D5537A
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050D
muted
#7C7A7D

Preview Lab

Preview with #522665

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

Preview Lab → · Contrast checker → · Palette generator →

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