#52286E#52286E

#52286E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.120 H 309.4°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#52286E
RGBrgb(82, 40, 110)
HSLhsl(276, 47%, 29%)
HSVhsv(276, 64%, 43%)
CMYKcmyk(25.5%, 63.6%, 0%, 56.9%)
CIE-LABlab(25.07, 33.09, -33.02)
CIE-LCHlch(25.07, 46.75, 315.06°)
OKLaboklab(36.82% 0.0764 -0.093)
OKLCHoklch(36.82% 0.12 309.4)
XYZxyz(7.0524, 4.4373, 15.2338)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52286E #446E28
analogous
#2F286E #52286E #6E2867
triadic
#52286E #6E5228 #286E52
tetradic
#52286E #6E2F28 #446E28 #28676E
square
#52286E #6E2F28 #446E28 #28676E
split-complementary
#52286E #676E28 #286E2F
monochromatic
#110816 #311841 #52286E #73389B #9351C0

Accessibility & contrast

On white

11.13
#52286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52286E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52286E#FFFFFF#000000##FFFFFF
##52286E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A70
Deuteranopia (green-blind)
#1F3C6C
Tritanopia (blue-blind)
#4E3547
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52286e;
/* rgb */ color: rgb(82, 40, 110);
/* oklch */ color: oklch(36.8% 0.120 309.4);
Tailwind
colors: {
  custom: {
    50: '#856498',
    500: '#52286e',
    950: '#000000',
  },
}
SCSS
$custom: #52286e;
$custom-light: #856498;
$custom-dark: #000000;
JSON
{
  "hex": "#52286e",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 276,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36822,
    "c": 0.12035,
    "h": 309.4
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#52286E
secondary
#71A051
accent
#D65187
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #52286E

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

Preview Lab → · Contrast checker → · Palette generator →

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