#52278A#52278A

#52278A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.155 H 298.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#52278A
RGBrgb(82, 39, 138)
HSLhsl(266, 56%, 35%)
HSVhsv(266, 72%, 54%)
CMYKcmyk(40.6%, 71.7%, 0%, 45.9%)
CIE-LABlab(26.96, 40.95, -47.67)
CIE-LCHlch(26.96, 62.84, 310.66°)
OKLaboklab(38.85% 0.0747 -0.1361)
OKLCHoklch(38.85% 0.155 298.8)
XYZxyz(8.7915, 5.0797, 24.5571)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52278A #5F8A27
analogous
#272D8A #52278A #84278A
triadic
#52278A #8A5227 #278A52
tetradic
#52278A #8A272D #5F8A27 #278A84
square
#52278A #8A272D #5F8A27 #278A84
split-complementary
#52278A #8A8427 #2D8A27
monochromatic
#190C2B #361A5A #52278A #6E34BA #8E5BD1

Accessibility & contrast

On white

10.42
#52278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#52278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52278A
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52278A#FFFFFF#000000##FFFFFF
##52278A1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#453F55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52278a;
/* rgb */ color: rgb(82, 39, 138);
/* oklch */ color: oklch(38.8% 0.155 298.8);
Tailwind
colors: {
  custom: {
    50: '#8865ad',
    500: '#52278a',
    950: '#000000',
  },
}
SCSS
$custom: #52278a;
$custom-light: #8865ad;
$custom-dark: #000000;
JSON
{
  "hex": "#52278a",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 266.061,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38847,
    "c": 0.15523,
    "h": 298.8
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#52278A
secondary
#8DB657
accent
#DF499E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52278A

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

Preview Lab → · Contrast checker → · Palette generator →

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