#52298E#52298E

#52298E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.157 H 297.2°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#52298E
RGBrgb(82, 41, 142)
HSLhsl(264, 55%, 36%)
HSVhsv(264, 71%, 56%)
CMYKcmyk(42.3%, 71.1%, 0%, 44.3%)
CIE-LABlab(27.66, 40.99, -49.01)
CIE-LCHlch(27.66, 63.89, 309.91°)
OKLaboklab(39.45% 0.0719 -0.14)
OKLCHoklch(39.45% 0.157 297.2)
XYZxyz(9.1538, 5.3325, 26.1329)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52298E #658E29
analogous
#29338E #52298E #84298E
triadic
#52298E #8E5229 #298E52
tetradic
#52298E #8E2933 #658E29 #298E84
square
#52298E #8E2933 #658E29 #298E84
split-complementary
#52298E #8E8429 #338E29
monochromatic
#1B0E2F #371B5F #52298E #6D37BD #8E60D1

Accessibility & contrast

On white

10.16
#52298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#52298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52298E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52298E#FFFFFF#000000##FFFFFF
##52298E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#434258
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52298e;
/* rgb */ color: rgb(82, 41, 142);
/* oklch */ color: oklch(39.4% 0.157 297.2);
Tailwind
colors: {
  custom: {
    50: '#8866b0',
    500: '#52298e',
    950: '#000000',
  },
}
SCSS
$custom: #52298e;
$custom-light: #8866b0;
$custom-dark: #000000;
JSON
{
  "hex": "#52298e",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 264.356,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39449,
    "c": 0.15739,
    "h": 297.2
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#52298E
secondary
#92B75C
accent
#DF49A2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #52298E

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

Preview Lab → · Contrast checker → · Palette generator →

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