#522862#522862

#522862 is a dark, moderate purple. Relative luminance 0.042; OKLCH L 36.0% C 0.106 H 315.8°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#522862
RGBrgb(82, 40, 98)
HSLhsl(283, 42%, 27%)
HSVhsv(283, 59%, 38%)
CMYKcmyk(16.3%, 59.2%, 0%, 61.6%)
CIE-LABlab(24.30, 30.16, -26.47)
CIE-LCHlch(24.30, 40.12, 318.73°)
OKLaboklab(36.02% 0.076 -0.0739)
OKLCHoklch(36.02% 0.106 315.8)
XYZxyz(6.4427, 4.1935, 12.0229)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522862 #386228
analogous
#352862 #522862 #622855
triadic
#522862 #625228 #286252
tetradic
#522862 #623528 #386228 #285562
square
#522862 #623528 #386228 #285562
split-complementary
#522862 #556228 #286235
monochromatic
#120916 #2E1637 #522862 #763A8D #9A4EB7

Accessibility & contrast

On white

11.42
#522862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#522862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522862
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522862#FFFFFF#000000##FFFFFF
##5228621.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3764
Deuteranopia (green-blind)
#283B61
Tritanopia (blue-blind)
#513141
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522862;
/* rgb */ color: rgb(82, 40, 98);
/* oklch */ color: oklch(36.0% 0.106 315.8);
Tailwind
colors: {
  custom: {
    50: '#84648f',
    500: '#522862',
    950: '#000000',
  },
}
SCSS
$custom: #522862;
$custom-light: #84648f;
$custom-dark: #000000;
JSON
{
  "hex": "#522862",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 283.448,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36015,
    "c": 0.10596,
    "h": 315.8
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#522862
secondary
#649551
accent
#D25678
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050C
muted
#7C7A7D

Preview Lab

Preview with #522862

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

Preview Lab → · Contrast checker → · Palette generator →

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