#52257F#52257F

#52257F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.145 H 302.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#52257F
RGBrgb(82, 37, 127)
HSLhsl(270, 55%, 32%)
HSVhsv(270, 71%, 50%)
CMYKcmyk(35.4%, 70.9%, 0%, 50.2%)
CIE-LABlab(25.71, 39.07, -42.81)
CIE-LCHlch(25.71, 57.96, 312.38°)
OKLaboklab(37.68% 0.0787 -0.1218)
OKLCHoklch(37.68% 0.145 302.9)
XYZxyz(7.9711, 4.6493, 20.5520)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52257F #527F25
analogous
#25257F #52257F #7F257F
triadic
#52257F #7F5225 #257F52
tetradic
#52257F #7F2525 #527F25 #257F7F
square
#52257F #7F2525 #527F25 #257F7F
split-complementary
#52257F #7F7F25 #257F25
monochromatic
#150920 #331750 #52257F #7133AE #8F52CD

Accessibility & contrast

On white

10.88
#52257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#52257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52257F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52257F#FFFFFF#000000##FFFFFF
##52257F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#493A4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52257f;
/* rgb */ color: rgb(82, 37, 127);
/* oklch */ color: oklch(37.7% 0.145 302.9);
Tailwind
colors: {
  custom: {
    50: '#8763a5',
    500: '#52257f',
    950: '#000000',
  },
}
SCSS
$custom: #52257f;
$custom-light: #8763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#52257f",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37679,
    "c": 0.145,
    "h": 302.9
  },
  "luminance": 0.04649
}

Semantic roles & 50–950 ramp

primary
#52257F
secondary
#80B14F
accent
#DE4A94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52257F

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

Preview Lab → · Contrast checker → · Palette generator →

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