#52288F#52288F

#52288F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.160 H 297.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#52288F
RGBrgb(82, 40, 143)
HSLhsl(264, 56%, 36%)
HSVhsv(264, 72%, 56%)
CMYKcmyk(42.7%, 72%, 0%, 43.9%)
CIE-LABlab(27.56, 41.78, -49.80)
CIE-LCHlch(27.56, 65.01, 310.00°)
OKLaboklab(39.4% 0.0728 -0.1423)
OKLCHoklch(39.4% 0.16 297.1)
XYZxyz(9.1951, 5.2944, 26.5187)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52288F #658F28
analogous
#28318F #52288F #85288F
triadic
#52288F #8F5228 #288F52
tetradic
#52288F #8F2831 #658F28 #288F85
square
#52288F #8F2831 #658F28 #288F85
split-complementary
#52288F #8F8528 #318F28
monochromatic
#1B0D2F #371B5F #52288F #6D35BF #8E5FD2

Accessibility & contrast

On white

10.20
#52288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#52288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52288F
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52288F#FFFFFF#000000##FFFFFF
##52288F1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#424258
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52288f;
/* rgb */ color: rgb(82, 40, 143);
/* oklch */ color: oklch(39.4% 0.160 297.1);
Tailwind
colors: {
  custom: {
    50: '#8866b1',
    500: '#52288f',
    950: '#000000',
  },
}
SCSS
$custom: #52288f;
$custom-light: #8866b1;
$custom-dark: #000000;
JSON
{
  "hex": "#52288f",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 264.466,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.394,
    "c": 0.15984,
    "h": 297.1
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#52288F
secondary
#92B85B
accent
#E048A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #52288F

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

Preview Lab → · Contrast checker → · Palette generator →

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