#52278B#52278B

#52278B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.156 H 298.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#52278B
RGBrgb(82, 39, 139)
HSLhsl(266, 56%, 35%)
HSVhsv(266, 72%, 55%)
CMYKcmyk(41%, 71.9%, 0%, 45.5%)
CIE-LABlab(27.04, 41.22, -48.16)
CIE-LCHlch(27.04, 63.39, 310.56°)
OKLaboklab(38.93% 0.0746 -0.1375)
OKLCHoklch(38.93% 0.156 298.5)
XYZxyz(8.8642, 5.1088, 24.9402)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52278B #608B27
analogous
#272E8B #52278B #84278B
triadic
#52278B #8B5227 #278B52
tetradic
#52278B #8B272E #608B27 #278B84
square
#52278B #8B272E #608B27 #278B84
split-complementary
#52278B #8B8427 #2E8B27
monochromatic
#1A0C2B #361A5B #52278B #6E34BB #8E5BD1

Accessibility & contrast

On white

10.39
#52278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52278B
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52278B#FFFFFF#000000##FFFFFF
##52278B1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#443F56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52278b;
/* rgb */ color: rgb(82, 39, 139);
/* oklch */ color: oklch(38.9% 0.156 298.5);
Tailwind
colors: {
  custom: {
    50: '#8865ae',
    500: '#52278b',
    950: '#000000',
  },
}
SCSS
$custom: #52278b;
$custom-light: #8865ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52278b",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 265.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38931,
    "c": 0.15641,
    "h": 298.5
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#52278B
secondary
#8EB658
accent
#DF489E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52278B

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

Preview Lab → · Contrast checker → · Palette generator →

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