#52236C#52236C

#52236C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.126 H 311.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#52236C
RGBrgb(82, 35, 108)
HSLhsl(279, 51%, 28%)
HSVhsv(279, 68%, 42%)
CMYKcmyk(24.1%, 67.6%, 0%, 57.6%)
CIE-LABlab(23.93, 35.32, -33.56)
CIE-LCHlch(23.93, 48.72, 316.47°)
OKLaboklab(35.95% 0.0831 -0.0946)
OKLCHoklch(35.95% 0.126 311.3)
XYZxyz(6.7870, 4.0788, 14.6142)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52236C #3D6C23
analogous
#2D236C #52236C #6C2361
triadic
#52236C #6C5223 #236C52
tetradic
#52236C #6C2D23 #3D6C23 #23616C
square
#52236C #6C2D23 #3D6C23 #23616C
split-complementary
#52236C #616C23 #236C2D
monochromatic
#120717 #2F143E #52236C #75329A #9746C3

Accessibility & contrast

On white

11.57
#52236C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#52236C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52236C
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52236C#FFFFFF#000000##FFFFFF
##52236C1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376E
Deuteranopia (green-blind)
#1B3A6A
Tritanopia (blue-blind)
#4F3144
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52236c;
/* rgb */ color: rgb(82, 35, 108);
/* oklch */ color: oklch(36.0% 0.126 311.3);
Tailwind
colors: {
  custom: {
    50: '#856196',
    500: '#52236c',
    950: '#000000',
  },
}
SCSS
$custom: #52236c;
$custom-light: #856196;
$custom-dark: #000000;
JSON
{
  "hex": "#52236c",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 108
  },
  "hsl": {
    "h": 278.63,
    "s": 51.049,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35954,
    "c": 0.12591,
    "h": 311.3
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#52236C
secondary
#699F4B
accent
#DB4D80
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52236C

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

Preview Lab → · Contrast checker → · Palette generator →

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