#52238F#52238F

#52238F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.166 H 297.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#52238F
RGBrgb(82, 35, 143)
HSLhsl(266, 61%, 35%)
HSVhsv(266, 76%, 56%)
CMYKcmyk(42.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(26.67, 44.27, -51.24)
CIE-LCHlch(26.67, 67.72, 310.83°)
OKLaboklab(38.78% 0.0777 -0.1465)
OKLCHoklch(38.78% 0.166 297.9)
XYZxyz(9.0374, 4.9789, 26.4662)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52238F #608F23
analogous
#232A8F #52238F #88238F
triadic
#52238F #8F5223 #238F52
tetradic
#52238F #8F232A #608F23 #238F88
square
#52238F #8F232A #608F23 #238F88
split-complementary
#52238F #8F8823 #2A8F23
monochromatic
#1A0B2D #36175E #52238F #6E2FC0 #8E57D6

Accessibility & contrast

On white

10.52
#52238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#52238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52238F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52238F#FFFFFF#000000##FFFFFF
##52238F1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#433F57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #52238f;
/* rgb */ color: rgb(82, 35, 143);
/* oklch */ color: oklch(38.8% 0.166 297.9);
Tailwind
colors: {
  custom: {
    50: '#8963b1',
    500: '#52238f',
    950: '#000000',
  },
}
SCSS
$custom: #52238f;
$custom-light: #8963b1;
$custom-dark: #000000;
JSON
{
  "hex": "#52238f",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 266.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38775,
    "c": 0.16586,
    "h": 297.9
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#52238F
secondary
#8EBA54
accent
#E4449E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #52238F

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

Preview Lab → · Contrast checker → · Palette generator →

#52238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva