#5236AB#5236AB

#5236AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.176 H 287.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5236AB
RGBrgb(82, 54, 171)
HSLhsl(254, 52%, 44%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(52%, 68.4%, 0%, 32.9%)
CIE-LABlab(32.64, 42.20, -58.54)
CIE-LCHlch(32.64, 72.17, 305.79°)
OKLaboklab(43.76% 0.0539 -0.1681)
OKLCHoklch(43.76% 0.176 287.8)
XYZxyz(12.1474, 7.3719, 39.3030)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5236AB #8FAB36
analogous
#3655AB #5236AB #8D36AB
triadic
#5236AB #AB5236 #36AB52
tetradic
#5236AB #AB3655 #8FAB36 #36AB8D
square
#5236AB #AB3655 #8FAB36 #36AB8D
split-complementary
#5236AB #AB8D36 #55AB36
monochromatic
#25194E #3C277C #5236AB #7155C9 #9883D8

Accessibility & contrast

On white

8.49
#5236AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5236AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5236AB
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5236AB#FFFFFF#000000##FFFFFF
##5236AB1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#31546C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5236ab;
/* rgb */ color: rgb(82, 54, 171);
/* oklch */ color: oklch(43.8% 0.176 287.8);
Tailwind
colors: {
  custom: {
    50: '#8b6fc5',
    500: '#5236ab',
    950: '#000000',
  },
}
SCSS
$custom: #5236ab;
$custom-light: #8b6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5236ab",
  "rgb": {
    "r": 82,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 254.359,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4376,
    "c": 0.17649,
    "h": 287.8
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#5236AB
secondary
#B1C27B
accent
#DB4CB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5236AB

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

Preview Lab → · Contrast checker → · Palette generator →

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