#52297A#52297A

#52297A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.133 H 304.0°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#52297A
RGBrgb(82, 41, 122)
HSLhsl(270, 50%, 32%)
HSVhsv(270, 66%, 48%)
CMYKcmyk(32.8%, 66.4%, 0%, 52.2%)
CIE-LABlab(26.11, 35.62, -39.00)
CIE-LCHlch(26.11, 52.82, 312.40°)
OKLaboklab(37.85% 0.0745 -0.1106)
OKLCHoklch(37.85% 0.133 304)
XYZxyz(7.7847, 4.7849, 18.9220)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52297A #517A29
analogous
#29297A #52297A #7A297A
triadic
#52297A #7A5229 #297A52
tetradic
#52297A #7A2929 #517A29 #297A7A
square
#52297A #7A2929 #517A29 #297A7A
split-complementary
#52297A #7A7A29 #297A29
monochromatic
#140A1E #331A4C #52297A #7138A8 #8F57C7

Accessibility & contrast

On white

10.73
#52297A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#52297A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52297A
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52297A#FFFFFF#000000##FFFFFF
##52297A1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#113E78
Tritanopia (blue-blind)
#4B3A4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52297a;
/* rgb */ color: rgb(82, 41, 122);
/* oklch */ color: oklch(37.8% 0.133 304.0);
Tailwind
colors: {
  custom: {
    50: '#8665a1',
    500: '#52297a',
    950: '#000000',
  },
}
SCSS
$custom: #52297a;
$custom-light: #8665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#52297a",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 270.37,
    "s": 49.693,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37849,
    "c": 0.13333,
    "h": 304
  },
  "luminance": 0.04785
}

Semantic roles & 50–950 ramp

primary
#52297A
secondary
#7FAC53
accent
#D94F93
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52297A

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

Preview Lab → · Contrast checker → · Palette generator →

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