#52299E#52299E

#52299E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.176 H 292.9°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#52299E
RGBrgb(82, 41, 158)
HSLhsl(261, 59%, 39%)
HSVhsv(261, 74%, 62%)
CMYKcmyk(48.1%, 74.1%, 0%, 38%)
CIE-LABlab(29.03, 45.40, -56.60)
CIE-LCHlch(29.03, 72.56, 308.73°)
OKLaboklab(40.84% 0.0686 -0.1623)
OKLCHoklch(40.84% 0.176 292.9)
XYZxyz(10.4425, 5.8480, 32.9197)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52299E #759E29
analogous
#293A9E #52299E #8D299E
triadic
#52299E #9E5229 #299E52
tetradic
#52299E #9E293A #759E29 #299E8D
square
#52299E #9E293A #759E29 #299E8D
split-complementary
#52299E #9E8D29 #3A9E29
monochromatic
#20103D #391C6D #52299E #6C39CC #9069D8

Accessibility & contrast

On white

9.68
#52299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#52299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52299E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52299E#FFFFFF#000000##FFFFFF
##52299E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#3B4861
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #52299e;
/* rgb */ color: rgb(82, 41, 158);
/* oklch */ color: oklch(40.8% 0.176 292.9);
Tailwind
colors: {
  custom: {
    50: '#8a67bc',
    500: '#52299e',
    950: '#000000',
  },
}
SCSS
$custom: #52299e;
$custom-light: #8a67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52299e",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 261.026,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4084,
    "c": 0.1762,
    "h": 292.9
  },
  "luminance": 0.05848
}

Semantic roles & 50–950 ramp

primary
#52299E
secondary
#9FBF64
accent
#E246AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52299E

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

Preview Lab → · Contrast checker → · Palette generator →

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