#52246A#52246A

#52246A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.122 H 312.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#52246A
RGBrgb(82, 36, 106)
HSLhsl(279, 49%, 28%)
HSVhsv(279, 66%, 42%)
CMYKcmyk(22.6%, 66%, 0%, 58.4%)
CIE-LABlab(23.99, 34.30, -32.17)
CIE-LCHlch(23.99, 47.03, 316.84°)
OKLaboklab(35.95% 0.0819 -0.0905)
OKLCHoklch(35.95% 0.122 312.1)
XYZxyz(6.7116, 4.0964, 14.0700)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52246A #3C6A24
analogous
#2F246A #52246A #6A245F
triadic
#52246A #6A5224 #246A52
tetradic
#52246A #6A2F24 #3C6A24 #245F6A
square
#52246A #6A2F24 #3C6A24 #245F6A
split-complementary
#52246A #5F6A24 #246A2F
monochromatic
#120817 #2F143C #52246A #753498 #9748C1

Accessibility & contrast

On white

11.54
#52246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#52246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52246A
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52246A#FFFFFF#000000##FFFFFF
##52246A1.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)
#06376C
Deuteranopia (green-blind)
#1E3A68
Tritanopia (blue-blind)
#4F3143
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52246a;
/* rgb */ color: rgb(82, 36, 106);
/* oklch */ color: oklch(36.0% 0.122 312.1);
Tailwind
colors: {
  custom: {
    50: '#856295',
    500: '#52246a',
    950: '#000000',
  },
}
SCSS
$custom: #52246a;
$custom-light: #856295;
$custom-dark: #000000;
JSON
{
  "hex": "#52246a",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 279.429,
    "s": 49.296,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35952,
    "c": 0.12204,
    "h": 312.1
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#52246A
secondary
#689D4D
accent
#D94F7E
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52246A

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

Preview Lab → · Contrast checker → · Palette generator →

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