#5236A0#5236A0

#5236A0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.163 H 289.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5236A0
RGBrgb(82, 54, 160)
HSLhsl(256, 50%, 42%)
HSVhsv(256, 66%, 63%)
CMYKcmyk(48.8%, 66.3%, 0%, 37.3%)
CIE-LABlab(31.74, 38.94, -53.39)
CIE-LCHlch(31.74, 66.08, 306.10°)
OKLaboklab(42.83% 0.0554 -0.1529)
OKLCHoklch(42.83% 0.163 289.9)
XYZxyz(11.1422, 6.9698, 34.0091)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236A0 #84A036
analogous
#364FA0 #5236A0 #8736A0
triadic
#5236A0 #A05236 #36A052
tetradic
#5236A0 #A0364F #84A036 #36A087
square
#5236A0 #A0364F #84A036 #36A087
split-complementary
#5236A0 #A08736 #4FA036
monochromatic
#231744 #3B2772 #5236A0 #6E4FC4 #947DD3

Accessibility & contrast

On white

8.77
#5236A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5236A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236A0
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236A0#FFFFFF#000000##FFFFFF
##5236A01.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#395066
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5236a0;
/* rgb */ color: rgb(82, 54, 160);
/* oklch */ color: oklch(42.8% 0.163 289.9);
Tailwind
colors: {
  custom: {
    50: '#896fbd',
    500: '#5236a0',
    950: '#000000',
  },
}
SCSS
$custom: #5236a0;
$custom-light: #896fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5236a0",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 160
  },
  "hsl": {
    "h": 255.849,
    "s": 49.533,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4283,
    "c": 0.16265,
    "h": 289.9
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

primary
#5236A0
secondary
#AABC75
accent
#D94FB5
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5236A0

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

Preview Lab → · Contrast checker → · Palette generator →

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