#52258C#52258C

#52258C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.160 H 298.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#52258C
RGBrgb(82, 37, 140)
HSLhsl(266, 58%, 35%)
HSVhsv(266, 74%, 55%)
CMYKcmyk(41.4%, 73.6%, 0%, 45.1%)
CIE-LABlab(26.76, 42.50, -49.23)
CIE-LCHlch(26.76, 65.04, 310.80°)
OKLaboklab(38.76% 0.0764 -0.1406)
OKLCHoklch(38.76% 0.16 298.5)
XYZxyz(8.8737, 5.0103, 25.3054)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52258C #5F8C25
analogous
#252B8C #52258C #86258C
triadic
#52258C #8C5225 #258C52
tetradic
#52258C #8C252B #5F8C25 #258C86
square
#52258C #8C252B #5F8C25 #258C86
split-complementary
#52258C #8C8625 #2B8C25
monochromatic
#190B2B #36185C #52258C #6E32BC #8E58D3

Accessibility & contrast

On white

10.49
#52258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#52258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52258C
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52258C#FFFFFF#000000##FFFFFF
##52258C1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#443F56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52258c;
/* rgb */ color: rgb(82, 37, 140);
/* oklch */ color: oklch(38.8% 0.160 298.5);
Tailwind
colors: {
  custom: {
    50: '#8864ae',
    500: '#52258c',
    950: '#000000',
  },
}
SCSS
$custom: #52258c;
$custom-light: #8864ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52258c",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 266.214,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38759,
    "c": 0.16007,
    "h": 298.5
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#52258C
secondary
#8DB855
accent
#E1469E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52258C

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

Preview Lab → · Contrast checker → · Palette generator →

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