#52278F#52278F

#52278F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.161 H 297.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#52278F
RGBrgb(82, 39, 143)
HSLhsl(265, 57%, 36%)
HSVhsv(265, 73%, 56%)
CMYKcmyk(42.7%, 72.7%, 0%, 43.9%)
CIE-LABlab(27.37, 42.30, -50.10)
CIE-LCHlch(27.37, 65.57, 310.17°)
OKLaboklab(39.27% 0.0738 -0.1432)
OKLCHoklch(39.27% 0.161 297.3)
XYZxyz(9.1618, 5.2279, 26.5077)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52278F #648F27
analogous
#27308F #52278F #86278F
triadic
#52278F #8F5227 #278F52
tetradic
#52278F #8F2730 #648F27 #278F86
square
#52278F #8F2730 #648F27 #278F86
split-complementary
#52278F #8F8627 #308F27
monochromatic
#1B0D2F #361A5F #52278F #6E34BF #8E5DD3

Accessibility & contrast

On white

10.27
#52278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#52278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52278F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52278F#FFFFFF#000000##FFFFFF
##52278F1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#424158
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52278f;
/* rgb */ color: rgb(82, 39, 143);
/* oklch */ color: oklch(39.3% 0.161 297.3);
Tailwind
colors: {
  custom: {
    50: '#8865b1',
    500: '#52278f',
    950: '#000000',
  },
}
SCSS
$custom: #52278f;
$custom-light: #8865b1;
$custom-dark: #000000;
JSON
{
  "hex": "#52278f",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 264.808,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3927,
    "c": 0.16109,
    "h": 297.3
  },
  "luminance": 0.05228
}

Semantic roles & 50–950 ramp

primary
#52278F
secondary
#91B85A
accent
#E047A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #52278F

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

Preview Lab → · Contrast checker → · Palette generator →

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