#52229B#52229B

#52229B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.180 H 294.7°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#52229B
RGBrgb(82, 34, 155)
HSLhsl(264, 64%, 37%)
HSVhsv(264, 78%, 61%)
CMYKcmyk(47.1%, 78.1%, 0%, 39.2%)
CIE-LABlab(27.58, 47.91, -57.13)
CIE-LCHlch(27.58, 74.57, 309.98°)
OKLaboklab(39.74% 0.0754 -0.1638)
OKLCHoklch(39.74% 0.18 294.7)
XYZxyz(9.9665, 5.3042, 31.5027)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52229B #6B9B22
analogous
#222E9B #52229B #8F229B
triadic
#52229B #9B5222 #229B52
tetradic
#52229B #9B222E #6B9B22 #229B8F
square
#52229B #9B222E #6B9B22 #229B8F
split-complementary
#52229B #9B8F22 #2E9B22
monochromatic
#1D0C37 #371769 #52229B #6D2DCD #8F5CDB

Accessibility & contrast

On white

10.19
#52229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#52229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52229B
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52229B#FFFFFF#000000##FFFFFF
##52229B1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#3D435E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52229b;
/* rgb */ color: rgb(82, 34, 155);
/* oklch */ color: oklch(39.7% 0.180 294.7);
Tailwind
colors: {
  custom: {
    50: '#8a63ba',
    500: '#52229b',
    950: '#000000',
  },
}
SCSS
$custom: #52229b;
$custom-light: #8a63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52229b",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 263.802,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39744,
    "c": 0.18034,
    "h": 294.7
  },
  "luminance": 0.05304
}

Semantic roles & 50–950 ramp

primary
#52229B
secondary
#97C059
accent
#E741A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #52229B

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

Preview Lab → · Contrast checker → · Palette generator →

#52229B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva