#52279D#52279D

#52279D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.177 H 293.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#52279D
RGBrgb(82, 39, 157)
HSLhsl(262, 60%, 38%)
HSVhsv(262, 75%, 62%)
CMYKcmyk(47.8%, 75.2%, 0%, 38.4%)
CIE-LABlab(28.59, 46.11, -56.71)
CIE-LCHlch(28.59, 73.09, 309.11°)
OKLaboklab(40.5% 0.0706 -0.1626)
OKLCHoklch(40.5% 0.177 293.5)
XYZxyz(10.2893, 5.6789, 32.4458)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52279D #729D27
analogous
#27379D #52279D #8D279D
triadic
#52279D #9D5227 #279D52
tetradic
#52279D #9D2737 #729D27 #279D8D
square
#52279D #9D2737 #729D27 #279D8D
split-complementary
#52279D #9D8D27 #379D27
monochromatic
#1F0F3B #381B6C #52279D #6C35CD #9066D9

Accessibility & contrast

On white

9.83
#52279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52279D
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52279D#FFFFFF#000000##FFFFFF
##52279D1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#3B4660
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #52279d;
/* rgb */ color: rgb(82, 39, 157);
/* oklch */ color: oklch(40.5% 0.177 293.5);
Tailwind
colors: {
  custom: {
    50: '#8a66bb',
    500: '#52279d',
    950: '#000000',
  },
}
SCSS
$custom: #52279d;
$custom-light: #8a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#52279d",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 261.864,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.17728,
    "h": 293.5
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

primary
#52279D
secondary
#9DBF61
accent
#E344A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52279D

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

Preview Lab → · Contrast checker → · Palette generator →

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