#52268D#52268D

#52268D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.160 H 298.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#52268D
RGBrgb(82, 38, 141)
HSLhsl(266, 58%, 35%)
HSVhsv(266, 73%, 55%)
CMYKcmyk(41.8%, 73%, 0%, 44.7%)
CIE-LABlab(27.03, 42.26, -49.43)
CIE-LCHlch(27.03, 65.03, 310.53°)
OKLaboklab(38.97% 0.0752 -0.1412)
OKLCHoklch(38.97% 0.16 298)
XYZxyz(8.9793, 5.1030, 25.7060)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52268D #618D26
analogous
#262D8D #52268D #85268D
triadic
#52268D #8D5226 #268D52
tetradic
#52268D #8D262D #618D26 #268D85
square
#52268D #8D262D #618D26 #268D85
split-complementary
#52268D #8D8526 #2D8D26
monochromatic
#1A0C2D #36195D #52268D #6E33BD #8E5BD3

Accessibility & contrast

On white

10.39
#52268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#52268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52268D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52268D#FFFFFF#000000##FFFFFF
##52268D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#434057
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52268d;
/* rgb */ color: rgb(82, 38, 141);
/* oklch */ color: oklch(39.0% 0.160 298.0);
Tailwind
colors: {
  custom: {
    50: '#8864af',
    500: '#52268d',
    950: '#000000',
  },
}
SCSS
$custom: #52268d;
$custom-light: #8864af;
$custom-dark: #000000;
JSON
{
  "hex": "#52268d",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 265.631,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38971,
    "c": 0.15999,
    "h": 298
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#52268D
secondary
#8EB857
accent
#E1479F
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52268D

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

Preview Lab → · Contrast checker → · Palette generator →

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