#52247F#52247F

#52247F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.146 H 303.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#52247F
RGBrgb(82, 36, 127)
HSLhsl(270, 56%, 32%)
HSVhsv(270, 72%, 50%)
CMYKcmyk(35.4%, 71.7%, 0%, 50.2%)
CIE-LABlab(25.53, 39.58, -43.11)
CIE-LCHlch(25.53, 58.52, 312.56°)
OKLaboklab(37.55% 0.0799 -0.1226)
OKLCHoklch(37.55% 0.146 303.1)
XYZxyz(7.9404, 4.5879, 20.5418)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52247F #517F24
analogous
#25247F #52247F #7F247F
triadic
#52247F #7F5224 #247F52
tetradic
#52247F #7F2524 #517F24 #247F7F
square
#52247F #7F2524 #517F24 #247F7F
split-complementary
#52247F #7F7F24 #247F25
monochromatic
#140920 #33164F #52247F #7132AF #8F50CD

Accessibility & contrast

On white

10.95
#52247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#52247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52247F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52247F#FFFFFF#000000##FFFFFF
##52247F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#49394E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52247f;
/* rgb */ color: rgb(82, 36, 127);
/* oklch */ color: oklch(37.5% 0.146 303.1);
Tailwind
colors: {
  custom: {
    50: '#8763a5',
    500: '#52247f',
    950: '#000000',
  },
}
SCSS
$custom: #52247f;
$custom-light: #8763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#52247f",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 270.33,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37548,
    "c": 0.14636,
    "h": 303.1
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#52247F
secondary
#7FB14E
accent
#DF4993
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52247F

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

Preview Lab → · Contrast checker → · Palette generator →

#52247F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva