#52238D#52238D

#52238D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.164 H 298.5°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#52238D
RGBrgb(82, 35, 141)
HSLhsl(267, 60%, 35%)
HSVhsv(267, 75%, 55%)
CMYKcmyk(41.8%, 75.2%, 0%, 44.7%)
CIE-LABlab(26.50, 43.74, -50.28)
CIE-LCHlch(26.50, 66.64, 311.02°)
OKLaboklab(38.6% 0.0782 -0.1437)
OKLCHoklch(38.6% 0.164 298.5)
XYZxyz(8.8872, 4.9189, 25.6753)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52238D #5E8D23
analogous
#23298D #52238D #87238D
triadic
#52238D #8D5223 #238D52
tetradic
#52238D #8D2329 #5E8D23 #238D87
square
#52238D #8D2329 #5E8D23 #238D87
split-complementary
#52238D #8D8723 #298D23
monochromatic
#190B2B #35175C #52238D #6F2FBE #8E55D5

Accessibility & contrast

On white

10.59
#52238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#52238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52238D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52238D#FFFFFF#000000##FFFFFF
##52238D1.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)
#003F90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#443E56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52238d;
/* rgb */ color: rgb(82, 35, 141);
/* oklch */ color: oklch(38.6% 0.164 298.5);
Tailwind
colors: {
  custom: {
    50: '#8863af',
    500: '#52238d',
    950: '#000000',
  },
}
SCSS
$custom: #52238d;
$custom-light: #8863af;
$custom-dark: #000000;
JSON
{
  "hex": "#52238d",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 266.604,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.386,
    "c": 0.1636,
    "h": 298.5
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

primary
#52238D
secondary
#8CB953
accent
#E3449D
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52238D

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

Preview Lab → · Contrast checker → · Palette generator →

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