#522265#522265

#522265 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.3% C 0.120 H 315.1°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#522265
RGBrgb(82, 34, 101)
HSLhsl(283, 50%, 26%)
HSVhsv(283, 66%, 40%)
CMYKcmyk(18.8%, 66.3%, 0%, 60.4%)
CIE-LABlab(23.26, 34.18, -30.08)
CIE-LCHlch(23.26, 45.53, 318.65°)
OKLaboklab(35.32% 0.0847 -0.0844)
OKLCHoklch(35.32% 0.12 315.1)
XYZxyz(6.4003, 3.8777, 12.7207)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522265 #356522
analogous
#312265 #522265 #652257
triadic
#522265 #655222 #226552
tetradic
#522265 #653122 #356522 #225765
square
#522265 #653122 #356522 #225765
split-complementary
#522265 #576522 #226531
monochromatic
#130817 #2D1337 #522265 #773193 #9C42BF

Accessibility & contrast

On white

11.83
#522265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#522265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522265
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522265#FFFFFF#000000##FFFFFF
##5222651.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3567
Deuteranopia (green-blind)
#213963
Tritanopia (blue-blind)
#512E40
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522265;
/* rgb */ color: rgb(82, 34, 101);
/* oklch */ color: oklch(35.3% 0.120 315.1);
Tailwind
colors: {
  custom: {
    50: '#856091',
    500: '#522265',
    950: '#000000',
  },
}
SCSS
$custom: #522265;
$custom-light: #856091;
$custom-dark: #000000;
JSON
{
  "hex": "#522265",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 101
  },
  "hsl": {
    "h": 282.985,
    "s": 49.63,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35319,
    "c": 0.11953,
    "h": 315.1
  },
  "luminance": 0.03877
}

Semantic roles & 50–950 ramp

primary
#522265
secondary
#60994A
accent
#D94F76
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050D
muted
#7C797D

Preview Lab

Preview with #522265

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

Preview Lab → · Contrast checker → · Palette generator →

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