#52279A#52279A

#52279A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.174 H 294.2°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#52279A
RGBrgb(82, 39, 154)
HSLhsl(262, 60%, 38%)
HSVhsv(262, 75%, 60%)
CMYKcmyk(46.8%, 74.7%, 0%, 39.6%)
CIE-LABlab(28.32, 45.29, -55.32)
CIE-LCHlch(28.32, 71.49, 309.31°)
OKLaboklab(40.23% 0.0713 -0.1585)
OKLCHoklch(40.23% 0.174 294.2)
XYZxyz(10.0363, 5.5777, 31.1134)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52279A #6F9A27
analogous
#27359A #52279A #8B279A
triadic
#52279A #9A5227 #279A52
tetradic
#52279A #9A2735 #6F9A27 #279A8B
square
#52279A #9A2735 #6F9A27 #279A8B
split-complementary
#52279A #9A8B27 #359A27
monochromatic
#1E0E38 #381B69 #52279A #6C33CB #8F64D8

Accessibility & contrast

On white

9.93
#52279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#52279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52279A
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52279A#FFFFFF#000000##FFFFFF
##52279A1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#3D455E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #52279a;
/* rgb */ color: rgb(82, 39, 154);
/* oklch */ color: oklch(40.2% 0.174 294.2);
Tailwind
colors: {
  custom: {
    50: '#8a65b9',
    500: '#52279a',
    950: '#000000',
  },
}
SCSS
$custom: #52279a;
$custom-light: #8a65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52279a",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 262.435,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40234,
    "c": 0.17383,
    "h": 294.2
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

primary
#52279A
secondary
#9ABD5F
accent
#E345A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #52279A

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

Preview Lab → · Contrast checker → · Palette generator →

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