#52226F#52226F

#52226F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.131 H 310.1°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#52226F
RGBrgb(82, 34, 111)
HSLhsl(277, 53%, 28%)
HSVhsv(277, 69%, 44%)
CMYKcmyk(26.1%, 69.4%, 0%, 56.5%)
CIE-LABlab(23.95, 36.58, -35.45)
CIE-LCHlch(23.95, 50.94, 315.89°)
OKLaboklab(36.04% 0.0842 -0.1001)
OKLCHoklch(36.04% 0.131 310.1)
XYZxyz(6.9204, 4.0857, 15.4599)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52226F #3F6F22
analogous
#2C226F #52226F #6F2265
triadic
#52226F #6F5222 #226F52
tetradic
#52226F #6F2C22 #3F6F22 #22656F
square
#52226F #6F2C22 #3F6F22 #22656F
split-complementary
#52226F #656F22 #226F2C
monochromatic
#110717 #2F1440 #52226F #75309E #9645C6

Accessibility & contrast

On white

11.56
#52226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#52226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52226F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52226F#FFFFFF#000000##FFFFFF
##52226F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#4E3245
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52226f;
/* rgb */ color: rgb(82, 34, 111);
/* oklch */ color: oklch(36.0% 0.131 310.1);
Tailwind
colors: {
  custom: {
    50: '#866199',
    500: '#52226f',
    950: '#000000',
  },
}
SCSS
$custom: #52226f;
$custom-light: #866199;
$custom-dark: #000000;
JSON
{
  "hex": "#52226f",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 277.403,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36038,
    "c": 0.13083,
    "h": 310.1
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#52226F
secondary
#6CA24A
accent
#DD4B82
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #52226F

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

Preview Lab → · Contrast checker → · Palette generator →

#52226F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva