#52289D#52289D

#52289D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.176 H 293.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#52289D
RGBrgb(82, 40, 157)
HSLhsl(262, 59%, 39%)
HSVhsv(262, 75%, 62%)
CMYKcmyk(47.8%, 74.5%, 0%, 38.4%)
CIE-LABlab(28.76, 45.62, -56.43)
CIE-LCHlch(28.76, 72.56, 308.95°)
OKLaboklab(40.63% 0.0697 -0.1618)
OKLCHoklch(40.63% 0.176 293.3)
XYZxyz(10.3226, 5.7454, 32.4568)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52289D #739D28
analogous
#28399D #52289D #8C289D
triadic
#52289D #9D5228 #289D52
tetradic
#52289D #9D2839 #739D28 #289D8C
square
#52289D #9D2839 #739D28 #289D8C
split-complementary
#52289D #9D8C28 #399D28
monochromatic
#1F0F3B #391C6C #52289D #6C36CC #9067D8

Accessibility & contrast

On white

9.77
#52289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#52289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52289D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52289D#FFFFFF#000000##FFFFFF
##52289D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#3B4760
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52289d;
/* rgb */ color: rgb(82, 40, 157);
/* oklch */ color: oklch(40.6% 0.176 293.3);
Tailwind
colors: {
  custom: {
    50: '#8a66bb',
    500: '#52289d',
    950: '#000000',
  },
}
SCSS
$custom: #52289d;
$custom-light: #8a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#52289d",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 261.538,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40626,
    "c": 0.17617,
    "h": 293.3
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#52289D
secondary
#9DBE62
accent
#E345AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52289D

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

Preview Lab → · Contrast checker → · Palette generator →

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