#52289F#52289F

#52289F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.178 H 292.8°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#52289F
RGBrgb(82, 40, 159)
HSLhsl(261, 60%, 39%)
HSVhsv(261, 75%, 62%)
CMYKcmyk(48.4%, 74.8%, 0%, 37.6%)
CIE-LABlab(28.94, 46.17, -57.35)
CIE-LCHlch(28.94, 73.63, 308.83°)
OKLaboklab(40.81% 0.0692 -0.1645)
OKLCHoklch(40.81% 0.178 292.8)
XYZxyz(10.4947, 5.8143, 33.3635)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52289F #759F28
analogous
#283A9F #52289F #8E289F
triadic
#52289F #9F5228 #289F52
tetradic
#52289F #9F283A #759F28 #289F8E
square
#52289F #9F283A #759F28 #289F8E
split-complementary
#52289F #9F8E28 #3A9F28
monochromatic
#200F3D #391C6E #52289F #6C37CD #9068D9

Accessibility & contrast

On white

9.71
#52289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#52289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52289F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52289F#FFFFFF#000000##FFFFFF
##52289F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#3A4861
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52289f;
/* rgb */ color: rgb(82, 40, 159);
/* oklch */ color: oklch(40.8% 0.178 292.8);
Tailwind
colors: {
  custom: {
    50: '#8a66bc',
    500: '#52289f',
    950: '#000000',
  },
}
SCSS
$custom: #52289f;
$custom-light: #8a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52289f",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 261.176,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40806,
    "c": 0.17848,
    "h": 292.8
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#52289F
secondary
#9FBF64
accent
#E345AB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52289F

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

Preview Lab → · Contrast checker → · Palette generator →

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