#5236A2#5236A2

#5236A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.0% C 0.165 H 289.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5236A2
RGBrgb(82, 54, 162)
HSLhsl(256, 50%, 42%)
HSVhsv(256, 67%, 64%)
CMYKcmyk(49.4%, 66.7%, 0%, 36.5%)
CIE-LABlab(31.90, 39.53, -54.34)
CIE-LCHlch(31.90, 67.20, 306.04°)
OKLaboklab(43% 0.0552 -0.1557)
OKLCHoklch(43% 0.165 289.5)
XYZxyz(11.3186, 7.0403, 34.9380)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236A2 #86A236
analogous
#3650A2 #5236A2 #8836A2
triadic
#5236A2 #A25236 #36A252
tetradic
#5236A2 #A23650 #86A236 #36A288
square
#5236A2 #A23650 #86A236 #36A288
split-complementary
#5236A2 #A28836 #50A236
monochromatic
#241746 #3B2774 #5236A2 #6F50C5 #957ED4

Accessibility & contrast

On white

8.72
#5236A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5236A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236A2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236A2#FFFFFF#000000##FFFFFF
##5236A21.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#375067
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5236a2;
/* rgb */ color: rgb(82, 54, 162);
/* oklch */ color: oklch(43.0% 0.165 289.5);
Tailwind
colors: {
  custom: {
    50: '#8a6fbe',
    500: '#5236a2',
    950: '#000000',
  },
}
SCSS
$custom: #5236a2;
$custom-light: #8a6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5236a2",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 255.556,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42996,
    "c": 0.16519,
    "h": 289.5
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#5236A2
secondary
#ABBD77
accent
#DA4EB5
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5236A2

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

Preview Lab → · Contrast checker → · Palette generator →

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