#52286A#52286A

#52286A is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.5% C 0.116 H 311.4°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#52286A
RGBrgb(82, 40, 106)
HSLhsl(278, 45%, 29%)
HSVhsv(278, 62%, 42%)
CMYKcmyk(22.6%, 62.3%, 0%, 58.4%)
CIE-LABlab(24.80, 32.09, -30.86)
CIE-LCHlch(24.80, 44.53, 316.12°)
OKLaboklab(36.55% 0.0763 -0.0867)
OKLCHoklch(36.55% 0.116 311.4)
XYZxyz(6.8395, 4.3522, 14.1126)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52286A #406A28
analogous
#31286A #52286A #6A2861
triadic
#52286A #6A5228 #286A52
tetradic
#52286A #6A3128 #406A28 #28616A
square
#52286A #6A3128 #406A28 #28616A
split-complementary
#52286A #616A28 #286A31
monochromatic
#110816 #30173E #52286A #743996 #9550BD

Accessibility & contrast

On white

11.23
#52286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52286A
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52286A#FFFFFF#000000##FFFFFF
##52286A1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11396C
Deuteranopia (green-blind)
#223C68
Tritanopia (blue-blind)
#4F3445
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52286a;
/* rgb */ color: rgb(82, 40, 106);
/* oklch */ color: oklch(36.5% 0.116 311.4);
Tailwind
colors: {
  custom: {
    50: '#856495',
    500: '#52286a',
    950: '#000000',
  },
}
SCSS
$custom: #52286a;
$custom-light: #856495;
$custom-dark: #000000;
JSON
{
  "hex": "#52286a",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 278.182,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36545,
    "c": 0.11553,
    "h": 311.4
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#52286A
secondary
#6D9D51
accent
#D55382
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52286A

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

Preview Lab → · Contrast checker → · Palette generator →

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