#52278C#52278C

#52278C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.158 H 298.2°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#52278C
RGBrgb(82, 39, 140)
HSLhsl(266, 56%, 35%)
HSVhsv(266, 72%, 55%)
CMYKcmyk(41.4%, 72.1%, 0%, 45.1%)
CIE-LABlab(27.12, 41.49, -48.65)
CIE-LCHlch(27.12, 63.93, 310.46°)
OKLaboklab(39.02% 0.0744 -0.1389)
OKLCHoklch(39.02% 0.158 298.2)
XYZxyz(8.9376, 5.1382, 25.3267)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52278C #618C27
analogous
#272E8C #52278C #85278C
triadic
#52278C #8C5227 #278C52
tetradic
#52278C #8C272E #618C27 #278C85
square
#52278C #8C272E #618C27 #278C85
split-complementary
#52278C #8C8527 #2E8C27
monochromatic
#1A0C2C #361A5C #52278C #6E34BC #8E5CD2

Accessibility & contrast

On white

10.36
#52278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#52278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52278C
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52278C#FFFFFF#000000##FFFFFF
##52278C1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#444056
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52278c;
/* rgb */ color: rgb(82, 39, 140);
/* oklch */ color: oklch(39.0% 0.158 298.2);
Tailwind
colors: {
  custom: {
    50: '#8865ae',
    500: '#52278c',
    950: '#000000',
  },
}
SCSS
$custom: #52278c;
$custom-light: #8865ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52278c",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 265.545,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39015,
    "c": 0.15758,
    "h": 298.2
  },
  "luminance": 0.05138
}

Semantic roles & 50–950 ramp

primary
#52278C
secondary
#8EB758
accent
#E0489F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52278C

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

Preview Lab → · Contrast checker → · Palette generator →

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