#52287E#52287E

#52287E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.140 H 302.7°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#52287E
RGBrgb(82, 40, 126)
HSLhsl(269, 52%, 33%)
HSVhsv(269, 68%, 49%)
CMYKcmyk(34.9%, 68.3%, 0%, 50.6%)
CIE-LABlab(26.21, 37.22, -41.37)
CIE-LCHlch(26.21, 55.65, 311.97°)
OKLaboklab(38.01% 0.0754 -0.1175)
OKLCHoklch(38.01% 0.14 302.7)
XYZxyz(8.0035, 4.8178, 20.2429)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52287E #547E28
analogous
#28297E #52287E #7D287E
triadic
#52287E #7E5228 #287E52
tetradic
#52287E #7E2829 #547E28 #287E7D
square
#52287E #7E2829 #547E28 #287E7D
split-complementary
#52287E #7E7D28 #297E28
monochromatic
#160B21 #341950 #52287E #7037AC #8F57CA

Accessibility & contrast

On white

10.69
#52287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#52287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52287E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52287E#FFFFFF#000000##FFFFFF
##52287E1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#063E7C
Tritanopia (blue-blind)
#493B4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52287e;
/* rgb */ color: rgb(82, 40, 126);
/* oklch */ color: oklch(38.0% 0.140 302.7);
Tailwind
colors: {
  custom: {
    50: '#8665a4',
    500: '#52287e',
    950: '#000000',
  },
}
SCSS
$custom: #52287e;
$custom-light: #8665a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52287e",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 269.302,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38012,
    "c": 0.13963,
    "h": 302.7
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#52287E
secondary
#82AF53
accent
#DB4D96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #52287E

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

Preview Lab → · Contrast checker → · Palette generator →

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