#52237A#52237A

#52237A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.142 H 305.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#52237A
RGBrgb(82, 35, 122)
HSLhsl(272, 55%, 31%)
HSVhsv(272, 71%, 48%)
CMYKcmyk(32.8%, 71.3%, 0%, 52.2%)
CIE-LABlab(24.96, 38.81, -40.87)
CIE-LCHlch(24.96, 56.36, 313.52°)
OKLaboklab(37.02% 0.0818 -0.116)
OKLCHoklch(37.02% 0.142 305.2)
XYZxyz(7.5928, 4.4011, 18.8581)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52237A #4B7A23
analogous
#26237A #52237A #7A2376
triadic
#52237A #7A5223 #237A52
tetradic
#52237A #7A2623 #4B7A23 #23767A
square
#52237A #7A2623 #4B7A23 #23767A
split-complementary
#52237A #767A23 #237A26
monochromatic
#12081B #32154A #52237A #7231AA #914CCC

Accessibility & contrast

On white

11.17
#52237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52237A
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52237A#FFFFFF#000000##FFFFFF
##52237A1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#043B78
Tritanopia (blue-blind)
#4B374B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52237a;
/* rgb */ color: rgb(82, 35, 122);
/* oklch */ color: oklch(37.0% 0.142 305.2);
Tailwind
colors: {
  custom: {
    50: '#8662a1',
    500: '#52237a',
    950: '#000000',
  },
}
SCSS
$custom: #52237a;
$custom-light: #8662a1;
$custom-dark: #000000;
JSON
{
  "hex": "#52237a",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 272.414,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37017,
    "c": 0.14196,
    "h": 305.2
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#52237A
secondary
#79AD4C
accent
#DF498E
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52237A

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

Preview Lab → · Contrast checker → · Palette generator →

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