#52258E#52258E

#52258E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.162 H 297.9°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#52258E
RGBrgb(82, 37, 142)
HSLhsl(266, 59%, 35%)
HSVhsv(266, 74%, 56%)
CMYKcmyk(42.3%, 73.9%, 0%, 44.3%)
CIE-LABlab(26.93, 43.03, -50.20)
CIE-LCHlch(26.93, 66.12, 310.60°)
OKLaboklab(38.93% 0.076 -0.1435)
OKLCHoklch(38.93% 0.162 297.9)
XYZxyz(9.0225, 5.0698, 26.0892)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52258E #618E25
analogous
#252D8E #52258E #86258E
triadic
#52258E #8E5225 #258E52
tetradic
#52258E #8E252D #618E25 #258E86
square
#52258E #8E252D #618E25 #258E86
split-complementary
#52258E #8E8625 #2D8E25
monochromatic
#1A0C2D #36185D #52258E #6E32BF #8E5AD4

Accessibility & contrast

On white

10.43
#52258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#52258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52258E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52258E#FFFFFF#000000##FFFFFF
##52258E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52258e;
/* rgb */ color: rgb(82, 37, 142);
/* oklch */ color: oklch(38.9% 0.162 297.9);
Tailwind
colors: {
  custom: {
    50: '#8864b0',
    500: '#52258e',
    950: '#000000',
  },
}
SCSS
$custom: #52258e;
$custom-light: #8864b0;
$custom-dark: #000000;
JSON
{
  "hex": "#52258e",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 265.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38931,
    "c": 0.16236,
    "h": 297.9
  },
  "luminance": 0.0507
}

Semantic roles & 50–950 ramp

primary
#52258E
secondary
#8EB956
accent
#E2469F
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #52258E

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

Preview Lab → · Contrast checker → · Palette generator →

#52258E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva