#52238C#52238C

#52238C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.162 H 298.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#52238C
RGBrgb(82, 35, 140)
HSLhsl(267, 60%, 34%)
HSVhsv(267, 75%, 55%)
CMYKcmyk(41.4%, 75%, 0%, 45.1%)
CIE-LABlab(26.42, 43.48, -49.80)
CIE-LCHlch(26.42, 66.11, 311.12°)
OKLaboklab(38.51% 0.0784 -0.1423)
OKLCHoklch(38.51% 0.162 298.9)
XYZxyz(8.8131, 4.8892, 25.2853)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52238C #5D8C23
analogous
#23298C #52238C #87238C
triadic
#52238C #8C5223 #238C52
tetradic
#52238C #8C2329 #5D8C23 #238C87
square
#52238C #8C2329 #5D8C23 #238C87
split-complementary
#52238C #8C8723 #298C23
monochromatic
#190B2A #35175B #52238C #6F2FBD #8E55D4

Accessibility & contrast

On white

10.62
#52238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#52238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52238C
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52238C#FFFFFF#000000##FFFFFF
##52238C1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#443E55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52238c;
/* rgb */ color: rgb(82, 35, 140);
/* oklch */ color: oklch(38.5% 0.162 298.9);
Tailwind
colors: {
  custom: {
    50: '#8863ae',
    500: '#52238c',
    950: '#000000',
  },
}
SCSS
$custom: #52238c;
$custom-light: #8863ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52238c",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 266.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.16247,
    "h": 298.9
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#52238C
secondary
#8BB852
accent
#E3459C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52238C

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

Preview Lab → · Contrast checker → · Palette generator →

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