#52268C#52268C

#52268C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.159 H 298.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#52268C
RGBrgb(82, 38, 140)
HSLhsl(266, 57%, 35%)
HSVhsv(266, 73%, 55%)
CMYKcmyk(41.4%, 72.9%, 0%, 45.1%)
CIE-LABlab(26.94, 42.00, -48.94)
CIE-LCHlch(26.94, 64.49, 310.63°)
OKLaboklab(38.89% 0.0754 -0.1398)
OKLCHoklch(38.89% 0.159 298.3)
XYZxyz(8.9052, 5.0734, 25.3159)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52268C #608C26
analogous
#262D8C #52268C #85268C
triadic
#52268C #8C5226 #268C52
tetradic
#52268C #8C262D #608C26 #268C85
square
#52268C #8C262D #608C26 #268C85
split-complementary
#52268C #8C8526 #2D8C26
monochromatic
#1A0C2C #36195C #52268C #6E33BC #8E5AD2

Accessibility & contrast

On white

10.42
#52268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#52268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52268C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52268C#FFFFFF#000000##FFFFFF
##52268C1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#443F56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #52268c;
/* rgb */ color: rgb(82, 38, 140);
/* oklch */ color: oklch(38.9% 0.159 298.3);
Tailwind
colors: {
  custom: {
    50: '#8864ae',
    500: '#52268c',
    950: '#000000',
  },
}
SCSS
$custom: #52268c;
$custom-light: #8864ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52268c",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 265.882,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38886,
    "c": 0.15884,
    "h": 298.3
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#52268C
secondary
#8EB757
accent
#E1479E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #52268C

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

Preview Lab → · Contrast checker → · Palette generator →

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