#52299B#52299B

#52299B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.173 H 293.6°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#52299B
RGBrgb(82, 41, 155)
HSLhsl(262, 58%, 38%)
HSVhsv(262, 74%, 61%)
CMYKcmyk(47.1%, 73.5%, 0%, 39.2%)
CIE-LABlab(28.76, 44.57, -55.21)
CIE-LCHlch(28.76, 70.95, 308.91°)
OKLaboklab(40.57% 0.0693 -0.1582)
OKLCHoklch(40.57% 0.173 293.6)
XYZxyz(10.1874, 5.7460, 31.5763)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52299B #729B29
analogous
#29399B #52299B #8B299B
triadic
#52299B #9B5229 #299B52
tetradic
#52299B #9B2939 #729B29 #299B8B
square
#52299B #9B2939 #729B29 #299B8B
split-complementary
#52299B #9B8B29 #399B29
monochromatic
#1F0F3A #381C6B #52299B #6C37CA #9067D7

Accessibility & contrast

On white

9.77
#52299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#52299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52299B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52299B#FFFFFF#000000##FFFFFF
##52299B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#3C475F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52299b;
/* rgb */ color: rgb(82, 41, 155);
/* oklch */ color: oklch(40.6% 0.173 293.6);
Tailwind
colors: {
  custom: {
    50: '#8a67b9',
    500: '#52299b',
    950: '#000000',
  },
}
SCSS
$custom: #52299b;
$custom-light: #8a67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52299b",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 261.579,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.17271,
    "h": 293.6
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#52299B
secondary
#9DBD63
accent
#E146AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #52299B

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

Preview Lab → · Contrast checker → · Palette generator →

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