#52248E#52248E

#52248E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.164 H 298.1°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#52248E
RGBrgb(82, 36, 142)
HSLhsl(266, 60%, 35%)
HSVhsv(266, 75%, 56%)
CMYKcmyk(42.3%, 74.6%, 0%, 44.3%)
CIE-LABlab(26.76, 43.52, -50.48)
CIE-LCHlch(26.76, 66.65, 310.77°)
OKLaboklab(38.81% 0.077 -0.1443)
OKLCHoklch(38.81% 0.164 298.1)
XYZxyz(8.9918, 5.0084, 26.0789)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52248E #608E24
analogous
#242B8E #52248E #87248E
triadic
#52248E #8E5224 #248E52
tetradic
#52248E #8E242B #608E24 #248E87
square
#52248E #8E242B #608E24 #248E87
split-complementary
#52248E #8E8724 #2B8E24
monochromatic
#1A0B2C #36185D #52248E #6E30BF #8E58D5

Accessibility & contrast

On white

10.49
#52248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#52248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52248E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52248E#FFFFFF#000000##FFFFFF
##52248E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#433F57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52248e;
/* rgb */ color: rgb(82, 36, 142);
/* oklch */ color: oklch(38.8% 0.164 298.1);
Tailwind
colors: {
  custom: {
    50: '#8863b0',
    500: '#52248e',
    950: '#000000',
  },
}
SCSS
$custom: #52248e;
$custom-light: #8863b0;
$custom-dark: #000000;
JSON
{
  "hex": "#52248e",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 266.038,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38808,
    "c": 0.16356,
    "h": 298.1
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#52248E
secondary
#8EB955
accent
#E3459E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #52248E

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

Preview Lab → · Contrast checker → · Palette generator →

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