#52237E#52237E

#52237E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.147 H 303.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#52237E
RGBrgb(82, 35, 126)
HSLhsl(271, 57%, 32%)
HSVhsv(271, 72%, 49%)
CMYKcmyk(34.9%, 72.2%, 0%, 50.6%)
CIE-LABlab(25.27, 39.83, -42.90)
CIE-LCHlch(25.27, 58.54, 312.88°)
OKLaboklab(37.34% 0.0812 -0.122)
OKLCHoklch(37.34% 0.147 303.6)
XYZxyz(7.8457, 4.5023, 20.1903)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52237E #4F7E23
analogous
#25237E #52237E #7E237D
triadic
#52237E #7E5223 #237E52
tetradic
#52237E #7E2523 #4F7E23 #237D7E
square
#52237E #7E2523 #4F7E23 #237D7E
split-complementary
#52237E #7D7E23 #237E25
monochromatic
#14081E #33164E #52237E #7130AE #904ECE

Accessibility & contrast

On white

11.05
#52237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#52237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52237E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52237E#FFFFFF#000000##FFFFFF
##52237E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#49384E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52237e;
/* rgb */ color: rgb(82, 35, 126);
/* oklch */ color: oklch(37.3% 0.147 303.6);
Tailwind
colors: {
  custom: {
    50: '#8762a4',
    500: '#52237e',
    950: '#000000',
  },
}
SCSS
$custom: #52237e;
$custom-light: #8762a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52237e",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 270.989,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37337,
    "c": 0.14654,
    "h": 303.6
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#52237E
secondary
#7DB04C
accent
#E04891
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52237E

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

Preview Lab → · Contrast checker → · Palette generator →

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