#52246C#52246C

#52246C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.124 H 311.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#52246C
RGBrgb(82, 36, 108)
HSLhsl(278, 50%, 28%)
HSVhsv(278, 67%, 42%)
CMYKcmyk(24.1%, 66.7%, 0%, 57.6%)
CIE-LABlab(24.12, 34.79, -33.24)
CIE-LCHlch(24.12, 48.12, 316.30°)
OKLaboklab(36.09% 0.0818 -0.0937)
OKLCHoklch(36.09% 0.124 311.1)
XYZxyz(6.8168, 4.1385, 14.6242)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52246C #3E6C24
analogous
#2E246C #52246C #6C2462
triadic
#52246C #6C5224 #246C52
tetradic
#52246C #6C2E24 #3E6C24 #24626C
square
#52246C #6C2E24 #3E6C24 #24626C
split-complementary
#52246C #626C24 #246C2E
monochromatic
#110817 #2F153E #52246C #75339A #9648C2

Accessibility & contrast

On white

11.49
#52246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#52246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52246C
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52246C#FFFFFF#000000##FFFFFF
##52246C1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02376E
Deuteranopia (green-blind)
#1D3A6A
Tritanopia (blue-blind)
#4F3244
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52246c;
/* rgb */ color: rgb(82, 36, 108);
/* oklch */ color: oklch(36.1% 0.124 311.1);
Tailwind
colors: {
  custom: {
    50: '#856296',
    500: '#52246c',
    950: '#000000',
  },
}
SCSS
$custom: #52246c;
$custom-light: #856296;
$custom-dark: #000000;
JSON
{
  "hex": "#52246c",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 278.333,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36094,
    "c": 0.12435,
    "h": 311.1
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#52246C
secondary
#6A9F4D
accent
#DA4E81
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52246C

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

Preview Lab → · Contrast checker → · Palette generator →

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