#52257C#52257C

#52257C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.141 H 304.0°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#52257C
RGBrgb(82, 37, 124)
HSLhsl(271, 54%, 32%)
HSVhsv(271, 70%, 49%)
CMYKcmyk(33.9%, 70.2%, 0%, 51.4%)
CIE-LABlab(25.48, 38.29, -41.29)
CIE-LCHlch(25.48, 56.31, 312.84°)
OKLaboklab(37.44% 0.0792 -0.1173)
OKLCHoklch(37.44% 0.142 304)
XYZxyz(7.7785, 4.5722, 19.5376)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52257C #4F7C25
analogous
#26257C #52257C #7C257B
triadic
#52257C #7C5225 #257C52
tetradic
#52257C #7C2625 #4F7C25 #257B7C
square
#52257C #7C2625 #4F7C25 #257B7C
split-complementary
#52257C #7B7C25 #257C26
monochromatic
#14091E #33174D #52257C #7133AB #9050CB

Accessibility & contrast

On white

10.97
#52257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#52257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52257C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52257C#FFFFFF#000000##FFFFFF
##52257C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#033C7A
Tritanopia (blue-blind)
#4A394D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52257c;
/* rgb */ color: rgb(82, 37, 124);
/* oklch */ color: oklch(37.4% 0.141 304.0);
Tailwind
colors: {
  custom: {
    50: '#8663a3',
    500: '#52257c',
    950: '#000000',
  },
}
SCSS
$custom: #52257c;
$custom-light: #8663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52257c",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 271.034,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3744,
    "c": 0.1415,
    "h": 304
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#52257C
secondary
#7DAE4F
accent
#DD4A91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52257C

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

Preview Lab → · Contrast checker → · Palette generator →

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