#52237B#52237B

#52237B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.143 H 304.8°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#52237B
RGBrgb(82, 35, 123)
HSLhsl(272, 56%, 31%)
HSVhsv(272, 72%, 48%)
CMYKcmyk(33.3%, 71.5%, 0%, 51.8%)
CIE-LABlab(25.03, 39.06, -41.38)
CIE-LCHlch(25.03, 56.91, 313.35°)
OKLaboklab(37.1% 0.0816 -0.1175)
OKLCHoklch(37.1% 0.143 304.8)
XYZxyz(7.6551, 4.4260, 19.1861)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52237B #4C7B23
analogous
#26237B #52237B #7B2378
triadic
#52237B #7B5223 #237B52
tetradic
#52237B #7B2623 #4C7B23 #23787B
square
#52237B #7B2623 #4C7B23 #23787B
split-complementary
#52237B #787B23 #237B26
monochromatic
#12081C #32154B #52237B #7231AB #914CCC

Accessibility & contrast

On white

11.14
#52237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52237B
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52237B#FFFFFF#000000##FFFFFF
##52237B1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#013B79
Tritanopia (blue-blind)
#4A374C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52237b;
/* rgb */ color: rgb(82, 35, 123);
/* oklch */ color: oklch(37.1% 0.143 304.8);
Tailwind
colors: {
  custom: {
    50: '#8662a2',
    500: '#52237b',
    950: '#000000',
  },
}
SCSS
$custom: #52237b;
$custom-light: #8662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52237b",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 272.045,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37096,
    "c": 0.14311,
    "h": 304.8
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#52237B
secondary
#7AAE4C
accent
#DF498F
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52237B

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

Preview Lab → · Contrast checker → · Palette generator →

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