#52287A#52287A

#52287A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.135 H 304.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#52287A
RGBrgb(82, 40, 122)
HSLhsl(271, 51%, 32%)
HSVhsv(271, 67%, 48%)
CMYKcmyk(32.8%, 67.2%, 0%, 52.2%)
CIE-LABlab(25.91, 36.17, -39.33)
CIE-LCHlch(25.91, 53.43, 312.60°)
OKLaboklab(37.7% 0.0757 -0.1115)
OKLCHoklch(37.7% 0.135 304.2)
XYZxyz(7.7505, 4.7166, 18.9107)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52287A #507A28
analogous
#29287A #52287A #7A2879
triadic
#52287A #7A5228 #287A52
tetradic
#52287A #7A2928 #507A28 #28797A
square
#52287A #7A2928 #507A28 #28797A
split-complementary
#52287A #797A28 #287A29
monochromatic
#140A1E #33194C #52287A #7137A8 #9055C7

Accessibility & contrast

On white

10.81
#52287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#52287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52287A
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52287A#FFFFFF#000000##FFFFFF
##52287A1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#0F3D78
Tritanopia (blue-blind)
#4B3A4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52287a;
/* rgb */ color: rgb(82, 40, 122);
/* oklch */ color: oklch(37.7% 0.135 304.2);
Tailwind
colors: {
  custom: {
    50: '#8665a1',
    500: '#52287a',
    950: '#000000',
  },
}
SCSS
$custom: #52287a;
$custom-light: #8665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#52287a",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 270.732,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37703,
    "c": 0.13482,
    "h": 304.2
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#52287A
secondary
#7EAC52
accent
#DA4E92
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52287A

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

Preview Lab → · Contrast checker → · Palette generator →

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