#52236F#52236F

#52236F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.129 H 309.9°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#52236F
RGBrgb(82, 35, 111)
HSLhsl(277, 52%, 29%)
HSVhsv(277, 68%, 44%)
CMYKcmyk(26.1%, 68.5%, 0%, 56.5%)
CIE-LABlab(24.14, 36.06, -35.15)
CIE-LCHlch(24.14, 50.36, 315.73°)
OKLaboklab(36.17% 0.0829 -0.0992)
OKLCHoklch(36.17% 0.129 309.9)
XYZxyz(6.9494, 4.1437, 15.4696)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52236F #406F23
analogous
#2C236F #52236F #6F2366
triadic
#52236F #6F5223 #236F52
tetradic
#52236F #6F2C23 #406F23 #23666F
square
#52236F #6F2C23 #406F23 #23666F
split-complementary
#52236F #666F23 #236F2C
monochromatic
#110717 #301440 #52236F #74329E #9547C5

Accessibility & contrast

On white

11.48
#52236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#52236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52236F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52236F#FFFFFF#000000##FFFFFF
##52236F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#183A6D
Tritanopia (blue-blind)
#4E3245
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52236f;
/* rgb */ color: rgb(82, 35, 111);
/* oklch */ color: oklch(36.2% 0.129 309.9);
Tailwind
colors: {
  custom: {
    50: '#856199',
    500: '#52236f',
    950: '#000000',
  },
}
SCSS
$custom: #52236f;
$custom-light: #856199;
$custom-dark: #000000;
JSON
{
  "hex": "#52236f",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 277.105,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.12934,
    "h": 309.9
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#52236F
secondary
#6DA24C
accent
#DB4C83
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #52236F

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

Preview Lab → · Contrast checker → · Palette generator →

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