#5236A5#5236A5

#5236A5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.169 H 288.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5236A5
RGBrgb(82, 54, 165)
HSLhsl(255, 51%, 43%)
HSVhsv(255, 67%, 65%)
CMYKcmyk(50.3%, 67.3%, 0%, 35.3%)
CIE-LABlab(32.14, 40.42, -55.75)
CIE-LCHlch(32.14, 68.86, 305.94°)
OKLaboklab(43.25% 0.0548 -0.1599)
OKLCHoklch(43.25% 0.169 288.9)
XYZxyz(11.5884, 7.1483, 36.3592)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236A5 #89A536
analogous
#3651A5 #5236A5 #8936A5
triadic
#5236A5 #A55236 #36A552
tetradic
#5236A5 #A53651 #89A536 #36A589
square
#5236A5 #A53651 #89A536 #36A589
split-complementary
#5236A5 #A58936 #51A536
monochromatic
#241849 #3B2777 #5236A5 #6F52C6 #9680D5

Accessibility & contrast

On white

8.64
#5236A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5236A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236A5
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236A5#FFFFFF#000000##FFFFFF
##5236A51.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#355169
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5236a5;
/* rgb */ color: rgb(82, 54, 165);
/* oklch */ color: oklch(43.2% 0.169 288.9);
Tailwind
colors: {
  custom: {
    50: '#8a6fc1',
    500: '#5236a5',
    950: '#000000',
  },
}
SCSS
$custom: #5236a5;
$custom-light: #8a6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5236a5",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 165
  },
  "hsl": {
    "h": 255.135,
    "s": 50.685,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43248,
    "c": 0.16898,
    "h": 288.9
  },
  "luminance": 0.07149
}

Semantic roles & 50–950 ramp

primary
#5236A5
secondary
#ADBF78
accent
#DA4EB7
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5236A5

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

Preview Lab → · Contrast checker → · Palette generator →

#5236A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva