#52259C#52259C

#52259C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.178 H 294.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#52259C
RGBrgb(82, 37, 156)
HSLhsl(263, 62%, 38%)
HSVhsv(263, 76%, 61%)
CMYKcmyk(47.4%, 76.3%, 0%, 38.8%)
CIE-LABlab(28.16, 46.80, -56.80)
CIE-LCHlch(28.16, 73.60, 309.48°)
OKLaboklab(40.17% 0.0726 -0.1629)
OKLCHoklch(40.17% 0.178 294)
XYZxyz(10.1403, 5.5170, 31.9766)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52259C #6F9C25
analogous
#25339C #52259C #8D259C
triadic
#52259C #9C5225 #259C52
tetradic
#52259C #9C2533 #6F9C25 #259C8D
square
#52259C #9C2533 #6F9C25 #259C8D
split-complementary
#52259C #9C8D25 #339C25
monochromatic
#1E0E39 #38196B #52259C #6C31CD #8F62DA

Accessibility & contrast

On white

9.98
#52259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#52259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52259C
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52259C#FFFFFF#000000##FFFFFF
##52259C1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#3C455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52259c;
/* rgb */ color: rgb(82, 37, 156);
/* oklch */ color: oklch(40.2% 0.178 294.0);
Tailwind
colors: {
  custom: {
    50: '#8a64ba',
    500: '#52259c',
    950: '#000000',
  },
}
SCSS
$custom: #52259c;
$custom-light: #8a64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52259c",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 262.689,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40175,
    "c": 0.17832,
    "h": 294
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#52259C
secondary
#9ABF5E
accent
#E543A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52259C

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

Preview Lab → · Contrast checker → · Palette generator →

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