#52246E#52246E

#52246E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.127 H 310.2°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#52246E
RGBrgb(82, 36, 110)
HSLhsl(277, 51%, 29%)
HSVhsv(277, 67%, 43%)
CMYKcmyk(25.5%, 67.3%, 0%, 56.9%)
CIE-LABlab(24.26, 35.28, -34.31)
CIE-LCHlch(24.26, 49.21, 315.80°)
OKLaboklab(36.24% 0.0817 -0.0968)
OKLCHoklch(36.24% 0.127 310.2)
XYZxyz(6.9245, 4.1815, 15.1912)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52246E #406E24
analogous
#2D246E #52246E #6E2465
triadic
#52246E #6E5224 #246E52
tetradic
#52246E #6E2D24 #406E24 #24656E
square
#52246E #6E2D24 #406E24 #24656E
split-complementary
#52246E #656E24 #246E2D
monochromatic
#110817 #301540 #52246E #74339C #9549C3

Accessibility & contrast

On white

11.44
#52246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#52246E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52246E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52246E#FFFFFF#000000##FFFFFF
##52246E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003870
Deuteranopia (green-blind)
#1A3A6C
Tritanopia (blue-blind)
#4E3345
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52246e;
/* rgb */ color: rgb(82, 36, 110);
/* oklch */ color: oklch(36.2% 0.127 310.2);
Tailwind
colors: {
  custom: {
    50: '#856298',
    500: '#52246e',
    950: '#000000',
  },
}
SCSS
$custom: #52246e;
$custom-light: #856298;
$custom-dark: #000000;
JSON
{
  "hex": "#52246e",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 277.297,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36239,
    "c": 0.12667,
    "h": 310.2
  },
  "luminance": 0.04181
}

Semantic roles & 50–950 ramp

primary
#52246E
secondary
#6DA14D
accent
#DA4E83
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #52246E

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

Preview Lab → · Contrast checker → · Palette generator →

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