#5236AE#5236AE

#5236AE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.180 H 287.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5236AE
RGBrgb(82, 54, 174)
HSLhsl(254, 53%, 45%)
HSVhsv(254, 69%, 68%)
CMYKcmyk(52.9%, 69%, 0%, 31.8%)
CIE-LABlab(32.89, 43.10, -59.92)
CIE-LCHlch(32.89, 73.81, 305.72°)
OKLaboklab(44.02% 0.0534 -0.1721)
OKLCHoklch(44.02% 0.18 287.2)
XYZxyz(12.4366, 7.4875, 40.8261)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236AE #92AE36
analogous
#3656AE #5236AE #8E36AE
triadic
#5236AE #AE5236 #36AE52
tetradic
#5236AE #AE3656 #92AE36 #36AE8E
square
#5236AE #AE3656 #92AE36 #36AE8E
split-complementary
#5236AE #AE8E36 #56AE36
monochromatic
#261951 #3C287F #5236AE #7256CB #9985D9

Accessibility & contrast

On white

8.41
#5236AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5236AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236AE
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236AE#FFFFFF#000000##FFFFFF
##5236AE1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#2E556E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5236ae;
/* rgb */ color: rgb(82, 54, 174);
/* oklch */ color: oklch(44.0% 0.180 287.2);
Tailwind
colors: {
  custom: {
    50: '#8c6fc7',
    500: '#5236ae',
    950: '#000000',
  },
}
SCSS
$custom: #5236ae;
$custom-light: #8c6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5236ae",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 174
  },
  "hsl": {
    "h": 254,
    "s": 52.632,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4402,
    "c": 0.1802,
    "h": 287.2
  },
  "luminance": 0.07488
}

Semantic roles & 50–950 ramp

primary
#5236AE
secondary
#B3C37D
accent
#DC4CBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5236AE

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

Preview Lab → · Contrast checker → · Palette generator →

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