#52229F#52229F

#52229F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.185 H 293.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#52229F
RGBrgb(82, 34, 159)
HSLhsl(263, 65%, 38%)
HSVhsv(263, 79%, 62%)
CMYKcmyk(48.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.96, 48.98, -58.97)
CIE-LCHlch(27.96, 76.65, 309.71°)
OKLaboklab(40.12% 0.0742 -0.1692)
OKLCHoklch(40.12% 0.185 293.7)
XYZxyz(10.3080, 5.4408, 33.3012)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52229F #6F9F22
analogous
#22309F #52229F #90229F
triadic
#52229F #9F5222 #229F52
tetradic
#52229F #9F2230 #6F9F22 #229F90
square
#52229F #9F2230 #6F9F22 #229F90
split-complementary
#52229F #9F9022 #309F22
monochromatic
#1E0C3A #38176D #52229F #6C2DD1 #8F5FDD

Accessibility & contrast

On white

10.06
#52229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#52229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52229F
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52229F#FFFFFF#000000##FFFFFF
##52229F1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#3A4560
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52229f;
/* rgb */ color: rgb(82, 34, 159);
/* oklch */ color: oklch(40.1% 0.185 293.7);
Tailwind
colors: {
  custom: {
    50: '#8b63bc',
    500: '#52229f',
    950: '#000000',
  },
}
SCSS
$custom: #52229f;
$custom-light: #8b63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52229f",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 263.04,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40116,
    "c": 0.18476,
    "h": 293.7
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#52229F
secondary
#9AC15B
accent
#E840A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #52229F

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

Preview Lab → · Contrast checker → · Palette generator →

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