#52297F#52297F

#52297F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.139 H 302.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#52297F
RGBrgb(82, 41, 127)
HSLhsl(269, 51%, 33%)
HSVhsv(269, 68%, 50%)
CMYKcmyk(35.4%, 67.7%, 0%, 50.2%)
CIE-LABlab(26.48, 36.94, -41.56)
CIE-LCHlch(26.48, 55.61, 311.63°)
OKLaboklab(38.23% 0.074 -0.1181)
OKLCHoklch(38.23% 0.139 302.1)
XYZxyz(8.1025, 4.9120, 20.5958)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52297F #567F29
analogous
#292B7F #52297F #7D297F
triadic
#52297F #7F5229 #297F52
tetradic
#52297F #7F292B #567F29 #297F7D
square
#52297F #7F292B #567F29 #297F7D
split-complementary
#52297F #7F7D29 #2B7F29
monochromatic
#160B22 #341A51 #52297F #7038AD #8F59C9

Accessibility & contrast

On white

10.59
#52297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#52297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52297F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52297F#FFFFFF#000000##FFFFFF
##52297F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#063E7D
Tritanopia (blue-blind)
#493C50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52297f;
/* rgb */ color: rgb(82, 41, 127);
/* oklch */ color: oklch(38.2% 0.139 302.1);
Tailwind
colors: {
  custom: {
    50: '#8666a5',
    500: '#52297f',
    950: '#000000',
  },
}
SCSS
$custom: #52297f;
$custom-light: #8666a5;
$custom-dark: #000000;
JSON
{
  "hex": "#52297f",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 268.605,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38233,
    "c": 0.13939,
    "h": 302.1
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

primary
#52297F
secondary
#84AF55
accent
#DB4D97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #52297F

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

Preview Lab → · Contrast checker → · Palette generator →

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