#52237C#52237C

#52237C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.144 H 304.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#52237C
RGBrgb(82, 35, 124)
HSLhsl(272, 56%, 31%)
HSVhsv(272, 72%, 49%)
CMYKcmyk(33.9%, 71.8%, 0%, 51.4%)
CIE-LABlab(25.11, 39.32, -41.89)
CIE-LCHlch(25.11, 57.45, 313.19°)
OKLaboklab(37.18% 0.0815 -0.119)
OKLCHoklch(37.18% 0.144 304.4)
XYZxyz(7.7180, 4.4512, 19.5174)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52237C #4D7C23
analogous
#25237C #52237C #7C2379
triadic
#52237C #7C5223 #237C52
tetradic
#52237C #7C2523 #4D7C23 #23797C
square
#52237C #7C2523 #4D7C23 #23797C
split-complementary
#52237C #797C23 #237C25
monochromatic
#13081D #32164C #52237C #7230AC #904DCD

Accessibility & contrast

On white

11.11
#52237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52237C
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52237C#FFFFFF#000000##FFFFFF
##52237C1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#003C7A
Tritanopia (blue-blind)
#4A374D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52237c;
/* rgb */ color: rgb(82, 35, 124);
/* oklch */ color: oklch(37.2% 0.144 304.4);
Tailwind
colors: {
  custom: {
    50: '#8762a3',
    500: '#52237c',
    950: '#000000',
  },
}
SCSS
$custom: #52237c;
$custom-light: #8762a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52237c",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 271.685,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37176,
    "c": 0.14425,
    "h": 304.4
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#52237C
secondary
#7BAF4C
accent
#DF4990
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52237C

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

Preview Lab → · Contrast checker → · Palette generator →

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