#52287C#52287C

#52287C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.137 H 303.4°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#52287C
RGBrgb(82, 40, 124)
HSLhsl(270, 51%, 32%)
HSVhsv(270, 68%, 49%)
CMYKcmyk(33.9%, 67.7%, 0%, 51.4%)
CIE-LABlab(26.06, 36.69, -40.35)
CIE-LCHlch(26.06, 54.54, 312.28°)
OKLaboklab(37.86% 0.0756 -0.1145)
OKLCHoklch(37.86% 0.137 303.4)
XYZxyz(7.8757, 4.7667, 19.5700)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52287C #527C28
analogous
#28287C #52287C #7C287C
triadic
#52287C #7C5228 #287C52
tetradic
#52287C #7C2828 #527C28 #287C7C
square
#52287C #7C2828 #527C28 #287C7C
split-complementary
#52287C #7C7C28 #287C28
monochromatic
#150A1F #33194E #52287C #7137AA #8F56C8

Accessibility & contrast

On white

10.75
#52287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#52287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52287C
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52287C#FFFFFF#000000##FFFFFF
##52287C1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#0B3E7A
Tritanopia (blue-blind)
#4A3A4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52287c;
/* rgb */ color: rgb(82, 40, 124);
/* oklch */ color: oklch(37.9% 0.137 303.4);
Tailwind
colors: {
  custom: {
    50: '#8665a2',
    500: '#52287c',
    950: '#000000',
  },
}
SCSS
$custom: #52287c;
$custom-light: #8665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52287c",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 270,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37857,
    "c": 0.13723,
    "h": 303.4
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#52287C
secondary
#80AD52
accent
#DB4D94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52287C

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

Preview Lab → · Contrast checker → · Palette generator →

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