#52279E#52279E

#52279E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.178 H 293.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#52279E
RGBrgb(82, 39, 158)
HSLhsl(262, 60%, 39%)
HSVhsv(262, 75%, 62%)
CMYKcmyk(48.1%, 75.3%, 0%, 38%)
CIE-LABlab(28.68, 46.38, -57.17)
CIE-LCHlch(28.68, 73.62, 309.05°)
OKLaboklab(40.59% 0.0704 -0.164)
OKLCHoklch(40.59% 0.178 293.2)
XYZxyz(10.3750, 5.7132, 32.8972)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52279E #739E27
analogous
#27379E #52279E #8D279E
triadic
#52279E #9E5227 #279E52
tetradic
#52279E #9E2737 #739E27 #279E8D
square
#52279E #9E2737 #739E27 #279E8D
split-complementary
#52279E #9E8D27 #379E27
monochromatic
#1F0F3C #391B6D #52279E #6C35CD #9066D9

Accessibility & contrast

On white

9.80
#52279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#52279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52279E
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52279E#FFFFFF#000000##FFFFFF
##52279E1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#3B4761
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52279e;
/* rgb */ color: rgb(82, 39, 158);
/* oklch */ color: oklch(40.6% 0.178 293.2);
Tailwind
colors: {
  custom: {
    50: '#8a66bc',
    500: '#52279e',
    950: '#000000',
  },
}
SCSS
$custom: #52279e;
$custom-light: #8a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52279e",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 261.681,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40594,
    "c": 0.17842,
    "h": 293.2
  },
  "luminance": 0.05713
}

Semantic roles & 50–950 ramp

primary
#52279E
secondary
#9DBF62
accent
#E444AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52279E

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

Preview Lab → · Contrast checker → · Palette generator →

#52279E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva