#52257E#52257E

#52257E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.144 H 303.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#52257E
RGBrgb(82, 37, 126)
HSLhsl(270, 55%, 32%)
HSVhsv(270, 71%, 49%)
CMYKcmyk(34.9%, 70.6%, 0%, 50.6%)
CIE-LABlab(25.63, 38.81, -42.31)
CIE-LCHlch(25.63, 57.41, 312.53°)
OKLaboklab(37.6% 0.0789 -0.1203)
OKLCHoklch(37.6% 0.144 303.3)
XYZxyz(7.9063, 4.6233, 20.2105)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52257E #517E25
analogous
#26257E #52257E #7E257E
triadic
#52257E #7E5225 #257E52
tetradic
#52257E #7E2625 #517E25 #257E7E
square
#52257E #7E2625 #517E25 #257E7E
split-complementary
#52257E #7E7E25 #257E26
monochromatic
#14091F #33174F #52257E #7133AD #8F51CC

Accessibility & contrast

On white

10.91
#52257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#52257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52257E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52257E#FFFFFF#000000##FFFFFF
##52257E1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#49394E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52257e;
/* rgb */ color: rgb(82, 37, 126);
/* oklch */ color: oklch(37.6% 0.144 303.3);
Tailwind
colors: {
  custom: {
    50: '#8763a4',
    500: '#52257e',
    950: '#000000',
  },
}
SCSS
$custom: #52257e;
$custom-light: #8763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52257e",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 270.337,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37599,
    "c": 0.14384,
    "h": 303.3
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#52257E
secondary
#7FB04F
accent
#DE4A93
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52257E

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

Preview Lab → · Contrast checker → · Palette generator →

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