#52235E#52235E

#52235E is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.110 H 319.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#52235E
RGBrgb(82, 35, 94)
HSLhsl(288, 46%, 25%)
HSVhsv(288, 63%, 37%)
CMYKcmyk(12.8%, 62.8%, 0%, 63.1%)
CIE-LABlab(23.01, 32.03, -25.88)
CIE-LCHlch(23.01, 41.18, 321.06°)
OKLaboklab(34.99% 0.0831 -0.0722)
OKLCHoklch(34.99% 0.11 319)
XYZxyz(6.1008, 3.8043, 11.0004)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52235E #2F5E23
analogous
#35235E #52235E #5E234C
triadic
#52235E #5E5223 #235E52
tetradic
#52235E #5E3523 #2F5E23 #234C5E
square
#52235E #5E3523 #2F5E23 #234C5E
split-complementary
#52235E #4C5E23 #235E35
monochromatic
#130816 #2B1231 #52235E #79348B #A044B7

Accessibility & contrast

On white

11.93
#52235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#52235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52235E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52235E#FFFFFF#000000##FFFFFF
##52235E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153460
Deuteranopia (green-blind)
#27395C
Tritanopia (blue-blind)
#522C3D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52235e;
/* rgb */ color: rgb(82, 35, 94);
/* oklch */ color: oklch(35.0% 0.110 319.0);
Tailwind
colors: {
  custom: {
    50: '#85618c',
    500: '#52235e',
    950: '#000000',
  },
}
SCSS
$custom: #52235e;
$custom-light: #85618c;
$custom-dark: #000000;
JSON
{
  "hex": "#52235e",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 287.797,
    "s": 45.736,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34994,
    "c": 0.11005,
    "h": 319
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#52235E
secondary
#59924B
accent
#D5526D
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #52235E

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

Preview Lab → · Contrast checker → · Palette generator →

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