#5236A4#5236A4

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

Color values

HEX#5236A4
RGBrgb(82, 54, 164)
HSLhsl(255, 50%, 43%)
HSVhsv(255, 67%, 64%)
CMYKcmyk(50%, 67.1%, 0%, 35.7%)
CIE-LABlab(32.06, 40.13, -55.28)
CIE-LCHlch(32.06, 68.31, 305.97°)
OKLaboklab(43.16% 0.0549 -0.1585)
OKLCHoklch(43.16% 0.168 289.1)
XYZxyz(11.4977, 7.1120, 35.8817)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236A4 #88A436
analogous
#3651A4 #5236A4 #8936A4
triadic
#5236A4 #A45236 #36A452
tetradic
#5236A4 #A43651 #88A436 #36A489
square
#5236A4 #A43651 #88A436 #36A489
split-complementary
#5236A4 #A48936 #51A436
monochromatic
#241848 #3B2776 #5236A4 #6F51C6 #957FD5

Accessibility & contrast

On white

8.67
#5236A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5236A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236A4
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236A4#FFFFFF#000000##FFFFFF
##5236A41.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#365168
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5236a4;
/* rgb */ color: rgb(82, 54, 164);
/* oklch */ color: oklch(43.2% 0.168 289.1);
Tailwind
colors: {
  custom: {
    50: '#8a6fc0',
    500: '#5236a4',
    950: '#000000',
  },
}
SCSS
$custom: #5236a4;
$custom-light: #8a6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5236a4",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 164
  },
  "hsl": {
    "h": 255.273,
    "s": 50.459,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43164,
    "c": 0.16772,
    "h": 289.1
  },
  "luminance": 0.07113
}

Semantic roles & 50–950 ramp

primary
#5236A4
secondary
#ACBE78
accent
#DA4EB6
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5236A4

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

Preview Lab → · Contrast checker → · Palette generator →

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