#52265E#52265E

#52265E is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.4% C 0.105 H 318.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#52265E
RGBrgb(82, 38, 94)
HSLhsl(287, 42%, 26%)
HSVhsv(287, 60%, 37%)
CMYKcmyk(12.8%, 59.6%, 0%, 63.1%)
CIE-LABlab(23.63, 30.36, -24.90)
CIE-LCHlch(23.63, 39.27, 320.64°)
OKLaboklab(35.45% 0.0787 -0.0693)
OKLCHoklch(35.45% 0.105 318.6)
XYZxyz(6.1929, 3.9885, 11.0311)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52265E #325E26
analogous
#36265E #52265E #5E264E
triadic
#52265E #5E5226 #265E52
tetradic
#52265E #5E3626 #325E26 #264E5E
square
#52265E #5E3626 #325E26 #264E5E
split-complementary
#52265E #4E5E26 #265E36
monochromatic
#130916 #2C1432 #52265E #78388A #9E49B5

Accessibility & contrast

On white

11.68
#52265E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#52265E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52265E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52265E#FFFFFF#000000##FFFFFF
##52265E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3560
Deuteranopia (green-blind)
#293A5D
Tritanopia (blue-blind)
#522F3E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52265e;
/* rgb */ color: rgb(82, 38, 94);
/* oklch */ color: oklch(35.4% 0.105 318.6);
Tailwind
colors: {
  custom: {
    50: '#84638c',
    500: '#52265e',
    950: '#000000',
  },
}
SCSS
$custom: #52265e;
$custom-light: #84638c;
$custom-dark: #000000;
JSON
{
  "hex": "#52265e",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 94
  },
  "hsl": {
    "h": 287.143,
    "s": 42.424,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35447,
    "c": 0.10483,
    "h": 318.6
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#52265E
secondary
#5D914F
accent
#D25670
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #52265E

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

Preview Lab → · Contrast checker → · Palette generator →

#52265E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva