#52247A#52247A

#52247A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.141 H 305.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#52247A
RGBrgb(82, 36, 122)
HSLhsl(272, 54%, 31%)
HSVhsv(272, 70%, 48%)
CMYKcmyk(32.8%, 70.5%, 0%, 52.2%)
CIE-LABlab(25.14, 38.29, -40.57)
CIE-LCHlch(25.14, 55.79, 313.35°)
OKLaboklab(37.15% 0.0806 -0.1152)
OKLCHoklch(37.15% 0.141 305)
XYZxyz(7.6226, 4.4608, 18.8680)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52247A #4C7A24
analogous
#27247A #52247A #7A2477
triadic
#52247A #7A5224 #247A52
tetradic
#52247A #7A2724 #4C7A24 #24777A
square
#52247A #7A2724 #4C7A24 #24777A
split-complementary
#52247A #777A24 #247A27
monochromatic
#12081B #32164B #52247A #7232A9 #914ECB

Accessibility & contrast

On white

11.10
#52247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52247A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52247A#FFFFFF#000000##FFFFFF
##52247A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#063C78
Tritanopia (blue-blind)
#4B374C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52247a;
/* rgb */ color: rgb(82, 36, 122);
/* oklch */ color: oklch(37.1% 0.141 305.0);
Tailwind
colors: {
  custom: {
    50: '#8662a1',
    500: '#52247a',
    950: '#000000',
  },
}
SCSS
$custom: #52247a;
$custom-light: #8662a1;
$custom-dark: #000000;
JSON
{
  "hex": "#52247a",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 272.093,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37149,
    "c": 0.14057,
    "h": 305
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#52247A
secondary
#7AAC4D
accent
#DE4A8F
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52247A

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

Preview Lab → · Contrast checker → · Palette generator →

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