#52297E#52297E

#52297E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.138 H 302.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#52297E
RGBrgb(82, 41, 126)
HSLhsl(269, 51%, 33%)
HSVhsv(269, 67%, 49%)
CMYKcmyk(34.9%, 67.5%, 0%, 50.6%)
CIE-LABlab(26.41, 36.67, -41.05)
CIE-LCHlch(26.41, 55.05, 311.78°)
OKLaboklab(38.16% 0.0741 -0.1166)
OKLCHoklch(38.16% 0.138 302.4)
XYZxyz(8.0376, 4.8861, 20.2543)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52297E #557E29
analogous
#292B7E #52297E #7C297E
triadic
#52297E #7E5229 #297E52
tetradic
#52297E #7E292B #557E29 #297E7C
square
#52297E #7E292B #557E29 #297E7C
split-complementary
#52297E #7E7C29 #2B7E29
monochromatic
#160B22 #341A50 #52297E #7038AC #8F59C9

Accessibility & contrast

On white

10.62
#52297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#52297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52297E
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52297E#FFFFFF#000000##FFFFFF
##52297E1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#083E7C
Tritanopia (blue-blind)
#493C4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52297e;
/* rgb */ color: rgb(82, 41, 126);
/* oklch */ color: oklch(38.2% 0.138 302.4);
Tailwind
colors: {
  custom: {
    50: '#8665a4',
    500: '#52297e',
    950: '#000000',
  },
}
SCSS
$custom: #52297e;
$custom-light: #8665a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52297e",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 268.941,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38155,
    "c": 0.13818,
    "h": 302.4
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#52297E
secondary
#83AE55
accent
#DA4D96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #52297E

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

Preview Lab → · Contrast checker → · Palette generator →

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