#52297C#52297C

#52297C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.136 H 303.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#52297C
RGBrgb(82, 41, 124)
HSLhsl(270, 50%, 32%)
HSVhsv(270, 67%, 49%)
CMYKcmyk(33.9%, 66.9%, 0%, 51.4%)
CIE-LABlab(26.26, 36.14, -40.03)
CIE-LCHlch(26.26, 53.93, 312.08°)
OKLaboklab(38% 0.0743 -0.1136)
OKLCHoklch(38% 0.136 303.2)
XYZxyz(7.9099, 4.8350, 19.5814)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52297C #537C29
analogous
#29297C #52297C #7C297C
triadic
#52297C #7C5229 #297C52
tetradic
#52297C #7C2929 #537C29 #297C7C
square
#52297C #7C2929 #537C29 #297C7C
split-complementary
#52297C #7C7C29 #297C29
monochromatic
#150B20 #341A4E #52297C #7038AA #8F58C8

Accessibility & contrast

On white

10.68
#52297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#52297C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52297C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52297C#FFFFFF#000000##FFFFFF
##52297C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#0D3E7A
Tritanopia (blue-blind)
#4A3B4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52297c;
/* rgb */ color: rgb(82, 41, 124);
/* oklch */ color: oklch(38.0% 0.136 303.2);
Tailwind
colors: {
  custom: {
    50: '#8665a2',
    500: '#52297c',
    950: '#000000',
  },
}
SCSS
$custom: #52297c;
$custom-light: #8665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52297c",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 269.639,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38001,
    "c": 0.13576,
    "h": 303.2
  },
  "luminance": 0.04835
}

Semantic roles & 50–950 ramp

primary
#52297C
secondary
#81AD54
accent
#DA4E95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52297C

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

Preview Lab → · Contrast checker → · Palette generator →

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