#52278D#52278D

#52278D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.159 H 297.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#52278D
RGBrgb(82, 39, 141)
HSLhsl(265, 57%, 35%)
HSVhsv(265, 72%, 55%)
CMYKcmyk(41.8%, 72.3%, 0%, 44.7%)
CIE-LABlab(27.21, 41.76, -49.13)
CIE-LCHlch(27.21, 64.48, 310.36°)
OKLaboklab(39.1% 0.0742 -0.1404)
OKLCHoklch(39.1% 0.159 297.9)
XYZxyz(9.0117, 5.1678, 25.7168)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52278D #628D27
analogous
#272F8D #52278D #85278D
triadic
#52278D #8D5227 #278D52
tetradic
#52278D #8D272F #628D27 #278D85
square
#52278D #8D272F #628D27 #278D85
split-complementary
#52278D #8D8527 #2F8D27
monochromatic
#1A0C2D #361A5D #52278D #6E34BD #8E5CD2

Accessibility & contrast

On white

10.33
#52278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52278D
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52278D#FFFFFF#000000##FFFFFF
##52278D1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#434057
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52278d;
/* rgb */ color: rgb(82, 39, 141);
/* oklch */ color: oklch(39.1% 0.159 297.9);
Tailwind
colors: {
  custom: {
    50: '#8865af',
    500: '#52278d',
    950: '#000000',
  },
}
SCSS
$custom: #52278d;
$custom-light: #8865af;
$custom-dark: #000000;
JSON
{
  "hex": "#52278d",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 265.294,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.391,
    "c": 0.15875,
    "h": 297.9
  },
  "luminance": 0.05168
}

Semantic roles & 50–950 ramp

primary
#52278D
secondary
#8FB759
accent
#E048A0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52278D

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

Preview Lab → · Contrast checker → · Palette generator →

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