#52235C#52235C

#52235C is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.9% C 0.108 H 320.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#52235C
RGBrgb(82, 35, 92)
HSLhsl(289, 45%, 25%)
HSVhsv(289, 62%, 36%)
CMYKcmyk(10.9%, 62%, 0%, 63.9%)
CIE-LABlab(22.89, 31.58, -24.76)
CIE-LCHlch(22.89, 40.13, 321.91°)
OKLaboklab(34.87% 0.083 -0.0689)
OKLCHoklch(34.87% 0.108 320.3)
XYZxyz(6.0122, 3.7689, 10.5339)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52235C #2D5C23
analogous
#36235C #52235C #5C2349
triadic
#52235C #5C5223 #235C52
tetradic
#52235C #5C3623 #2D5C23 #23495C
square
#52235C #5C3623 #2D5C23 #23495C
split-complementary
#52235C #495C23 #235C36
monochromatic
#140816 #2A1230 #52235C #7A3488 #A145B5

Accessibility & contrast

On white

11.97
#52235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#52235C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52235C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52235C#FFFFFF#000000##FFFFFF
##52235C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17335E
Deuteranopia (green-blind)
#28385A
Tritanopia (blue-blind)
#532C3C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52235c;
/* rgb */ color: rgb(82, 35, 92);
/* oklch */ color: oklch(34.9% 0.108 320.3);
Tailwind
colors: {
  custom: {
    50: '#84618a',
    500: '#52235c',
    950: '#000000',
  },
}
SCSS
$custom: #52235c;
$custom-light: #84618a;
$custom-dark: #000000;
JSON
{
  "hex": "#52235c",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 289.474,
    "s": 44.882,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.10783,
    "h": 320.3
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#52235C
secondary
#57904B
accent
#D5536A
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #52235C

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

Preview Lab → · Contrast checker → · Palette generator →

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