#52289C#52289C

#52289C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.175 H 293.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#52289C
RGBrgb(82, 40, 156)
HSLhsl(262, 59%, 38%)
HSVhsv(262, 74%, 61%)
CMYKcmyk(47.4%, 74.4%, 0%, 38.8%)
CIE-LABlab(28.67, 45.34, -55.96)
CIE-LCHlch(28.67, 72.03, 309.02°)
OKLaboklab(40.54% 0.07 -0.1604)
OKLCHoklch(40.54% 0.175 293.6)
XYZxyz(10.2376, 5.7114, 32.0091)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52289C #729C28
analogous
#28389C #52289C #8C289C
triadic
#52289C #9C5228 #289C52
tetradic
#52289C #9C2838 #729C28 #289C8C
square
#52289C #9C2838 #729C28 #289C8C
split-complementary
#52289C #9C8C28 #389C28
monochromatic
#1F0F3B #381C6B #52289C #6C36CB #9067D8

Accessibility & contrast

On white

9.80
#52289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#52289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52289C
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52289C#FFFFFF#000000##FFFFFF
##52289C1.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)
#00459F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#3C4760
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52289c;
/* rgb */ color: rgb(82, 40, 156);
/* oklch */ color: oklch(40.5% 0.175 293.6);
Tailwind
colors: {
  custom: {
    50: '#8a66ba',
    500: '#52289c',
    950: '#000000',
  },
}
SCSS
$custom: #52289c;
$custom-light: #8a66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52289c",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 261.724,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40536,
    "c": 0.17502,
    "h": 293.6
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #52289C

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

Preview Lab → · Contrast checker → · Palette generator →

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