#52298A#52298A

#52298A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.153 H 298.4°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#52298A
RGBrgb(82, 41, 138)
HSLhsl(265, 54%, 35%)
HSVhsv(265, 70%, 54%)
CMYKcmyk(40.6%, 70.3%, 0%, 45.9%)
CIE-LABlab(27.34, 39.90, -47.06)
CIE-LCHlch(27.34, 61.70, 310.29°)
OKLaboklab(39.12% 0.0726 -0.1343)
OKLCHoklch(39.12% 0.153 298.4)
XYZxyz(8.8589, 5.2146, 24.5796)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52298A #618A29
analogous
#29308A #52298A #83298A
triadic
#52298A #8A5229 #298A52
tetradic
#52298A #8A2930 #618A29 #298A83
square
#52298A #8A2930 #618A29 #298A83
split-complementary
#52298A #8A8329 #308A29
monochromatic
#1A0D2C #361B5B #52298A #6E37B9 #8E5ECF

Accessibility & contrast

On white

10.28
#52298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#52298A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52298A
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52298A#FFFFFF#000000##FFFFFF
##52298A1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#454056
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52298a;
/* rgb */ color: rgb(82, 41, 138);
/* oklch */ color: oklch(39.1% 0.153 298.4);
Tailwind
colors: {
  custom: {
    50: '#8866ad',
    500: '#52298a',
    950: '#000000',
  },
}
SCSS
$custom: #52298a;
$custom-light: #8866ad;
$custom-dark: #000000;
JSON
{
  "hex": "#52298a",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 265.361,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39116,
    "c": 0.15263,
    "h": 298.4
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#52298A
secondary
#8EB55A
accent
#DE4A9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52298A

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

Preview Lab → · Contrast checker → · Palette generator →

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