#52297D#52297D

#52297D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.137 H 302.8°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#52297D
RGBrgb(82, 41, 125)
HSLhsl(269, 51%, 33%)
HSVhsv(269, 67%, 49%)
CMYKcmyk(34.4%, 67.2%, 0%, 51%)
CIE-LABlab(26.33, 36.41, -40.54)
CIE-LCHlch(26.33, 54.49, 311.93°)
OKLaboklab(38.08% 0.0742 -0.1151)
OKLCHoklch(38.08% 0.137 302.8)
XYZxyz(7.9734, 4.8604, 19.9161)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52297D #547D29
analogous
#292A7D #52297D #7C297D
triadic
#52297D #7D5229 #297D52
tetradic
#52297D #7D292A #547D29 #297D7C
square
#52297D #7D292A #547D29 #297D7C
split-complementary
#52297D #7D7C29 #2A7D29
monochromatic
#160B21 #341A4F #52297D #7038AB #8F58C8

Accessibility & contrast

On white

10.65
#52297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#52297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52297D
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52297D#FFFFFF#000000##FFFFFF
##52297D1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#0B3E7B
Tritanopia (blue-blind)
#4A3B4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52297d;
/* rgb */ color: rgb(82, 41, 125);
/* oklch */ color: oklch(38.1% 0.137 302.8);
Tailwind
colors: {
  custom: {
    50: '#8665a3',
    500: '#52297d',
    950: '#000000',
  },
}
SCSS
$custom: #52297d;
$custom-light: #8665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52297d",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 269.286,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38078,
    "c": 0.13697,
    "h": 302.8
  },
  "luminance": 0.0486
}

Semantic roles & 50–950 ramp

primary
#52297D
secondary
#82AE54
accent
#DA4E96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52297D

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

Preview Lab → · Contrast checker → · Palette generator →

#52297D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva