#52285D#52285D

#52285D is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.7% C 0.100 H 319.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#52285D
RGBrgb(82, 40, 93)
HSLhsl(288, 40%, 26%)
HSVhsv(288, 57%, 36%)
CMYKcmyk(11.8%, 57%, 0%, 63.5%)
CIE-LABlab(24.01, 28.99, -23.66)
CIE-LCHlch(24.01, 37.41, 320.78°)
OKLaboklab(35.7% 0.0755 -0.0657)
OKLCHoklch(35.7% 0.1 319)
XYZxyz(6.2140, 4.1020, 10.8182)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52285D #335D28
analogous
#37285D #52285D #5D284D
triadic
#52285D #5D5228 #285D52
tetradic
#52285D #5D3728 #335D28 #284D5D
square
#52285D #5D3728 #335D28 #284D5D
split-complementary
#52285D #4D5D28 #285D37
monochromatic
#130915 #2C1632 #52285D #783A88 #9D4DB2

Accessibility & contrast

On white

11.54
#52285D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#52285D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52285D
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52285D#FFFFFF#000000##FFFFFF
##52285D1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E365F
Deuteranopia (green-blind)
#2B3B5C
Tritanopia (blue-blind)
#52303E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52285d;
/* rgb */ color: rgb(82, 40, 93);
/* oklch */ color: oklch(35.7% 0.100 319.0);
Tailwind
colors: {
  custom: {
    50: '#84648b',
    500: '#52285d',
    950: '#000000',
  },
}
SCSS
$custom: #52285d;
$custom-light: #84648b;
$custom-dark: #000000;
JSON
{
  "hex": "#52285d",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 93
  },
  "hsl": {
    "h": 287.547,
    "s": 39.85,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35702,
    "c": 0.10008,
    "h": 319
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#52285D
secondary
#5E9051
accent
#D05871
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050C
muted
#7C7A7D

Preview Lab

Preview with #52285D

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

Preview Lab → · Contrast checker → · Palette generator →

#52285D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva