#52287B#52287B

#52287B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.136 H 303.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#52287B
RGBrgb(82, 40, 123)
HSLhsl(270, 51%, 32%)
HSVhsv(270, 67%, 48%)
CMYKcmyk(33.3%, 67.5%, 0%, 51.8%)
CIE-LABlab(25.99, 36.43, -39.84)
CIE-LCHlch(25.99, 53.98, 312.44°)
OKLaboklab(37.78% 0.0757 -0.113)
OKLCHoklch(37.78% 0.136 303.8)
XYZxyz(7.8128, 4.7415, 19.2387)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52287B #517B28
analogous
#28287B #52287B #7B287B
triadic
#52287B #7B5228 #287B52
tetradic
#52287B #7B2828 #517B28 #287B7B
square
#52287B #7B2828 #517B28 #287B7B
split-complementary
#52287B #7B7B28 #287B28
monochromatic
#140A1F #33194D #52287B #7137A9 #8F56C8

Accessibility & contrast

On white

10.78
#52287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52287B
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52287B#FFFFFF#000000##FFFFFF
##52287B1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#0D3D79
Tritanopia (blue-blind)
#4A3A4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52287b;
/* rgb */ color: rgb(82, 40, 123);
/* oklch */ color: oklch(37.8% 0.136 303.8);
Tailwind
colors: {
  custom: {
    50: '#8665a2',
    500: '#52287b',
    950: '#000000',
  },
}
SCSS
$custom: #52287b;
$custom-light: #8665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52287b",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 270.361,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.13603,
    "h": 303.8
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#52287B
secondary
#7FAD52
accent
#DA4D93
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52287B

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

Preview Lab → · Contrast checker → · Palette generator →

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