#52257D#52257D

#52257D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.143 H 303.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#52257D
RGBrgb(82, 37, 125)
HSLhsl(271, 54%, 32%)
HSVhsv(271, 70%, 49%)
CMYKcmyk(34.4%, 70.4%, 0%, 51%)
CIE-LABlab(25.56, 38.55, -41.80)
CIE-LCHlch(25.56, 56.86, 312.68°)
OKLaboklab(37.52% 0.079 -0.1188)
OKLCHoklch(37.52% 0.143 303.6)
XYZxyz(7.8421, 4.5977, 19.8724)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52257D #507D25
analogous
#26257D #52257D #7D257C
triadic
#52257D #7D5225 #257D52
tetradic
#52257D #7D2625 #507D25 #257C7D
square
#52257D #7D2625 #507D25 #257C7D
split-complementary
#52257D #7C7D25 #257D26
monochromatic
#14091F #33174E #52257D #7133AC #9051CB

Accessibility & contrast

On white

10.94
#52257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52257D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52257D#FFFFFF#000000##FFFFFF
##52257D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#4A394E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52257d;
/* rgb */ color: rgb(82, 37, 125);
/* oklch */ color: oklch(37.5% 0.143 303.6);
Tailwind
colors: {
  custom: {
    50: '#8763a3',
    500: '#52257d',
    950: '#000000',
  },
}
SCSS
$custom: #52257d;
$custom-light: #8763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52257d",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 270.682,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37519,
    "c": 0.14268,
    "h": 303.6
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

primary
#52257D
secondary
#7EAF4F
accent
#DE4A92
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52257D

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

Preview Lab → · Contrast checker → · Palette generator →

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