#52298C#52298C

#52298C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.155 H 297.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#52298C
RGBrgb(82, 41, 140)
HSLhsl(265, 55%, 35%)
HSVhsv(265, 71%, 55%)
CMYKcmyk(41.4%, 70.7%, 0%, 45.1%)
CIE-LABlab(27.50, 40.44, -48.04)
CIE-LCHlch(27.50, 62.80, 310.09°)
OKLaboklab(39.28% 0.0722 -0.1371)
OKLCHoklch(39.28% 0.155 297.8)
XYZxyz(9.0050, 5.2730, 25.3492)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52298C #638C29
analogous
#29328C #52298C #83298C
triadic
#52298C #8C5229 #298C52
tetradic
#52298C #8C2932 #638C29 #298C83
square
#52298C #8C2932 #638C29 #298C83
split-complementary
#52298C #8C8329 #328C29
monochromatic
#1B0D2D #361B5D #52298C #6E37BB #8E5FD0

Accessibility & contrast

On white

10.22
#52298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#52298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52298C
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52298C#FFFFFF#000000##FFFFFF
##52298C1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#444157
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52298c;
/* rgb */ color: rgb(82, 41, 140);
/* oklch */ color: oklch(39.3% 0.155 297.8);
Tailwind
colors: {
  custom: {
    50: '#8866ae',
    500: '#52298c',
    950: '#000000',
  },
}
SCSS
$custom: #52298c;
$custom-light: #8866ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52298c",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 264.848,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39281,
    "c": 0.15501,
    "h": 297.8
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#52298C
secondary
#90B65B
accent
#DE4AA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52298C

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

Preview Lab → · Contrast checker → · Palette generator →

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