#5336AB#5336AB

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

Color values

HEX#5336AB
RGBrgb(83, 54, 171)
HSLhsl(255, 52%, 44%)
HSVhsv(255, 68%, 67%)
CMYKcmyk(51.5%, 68.4%, 0%, 32.9%)
CIE-LABlab(32.74, 42.38, -58.38)
CIE-LCHlch(32.74, 72.14, 305.98°)
OKLaboklab(43.86% 0.0553 -0.1675)
OKLCHoklch(43.86% 0.176 288.3)
XYZxyz(12.2350, 7.4170, 39.3071)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336AB #8EAB36
analogous
#3654AB #5336AB #8E36AB
triadic
#5336AB #AB5336 #36AB53
tetradic
#5336AB #AB3654 #8EAB36 #36AB8E
square
#5336AB #AB3654 #8EAB36 #36AB8E
split-complementary
#5336AB #AB8E36 #54AB36
monochromatic
#26194E #3C277C #5336AB #7255C9 #9883D8

Accessibility & contrast

On white

8.46
#5336AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5336AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5336AB
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336AB#FFFFFF#000000##FFFFFF
##5336AB1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#33546C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5336ab;
/* rgb */ color: rgb(83, 54, 171);
/* oklch */ color: oklch(43.9% 0.176 288.3);
Tailwind
colors: {
  custom: {
    50: '#8c6fc5',
    500: '#5336ab',
    950: '#000000',
  },
}
SCSS
$custom: #5336ab;
$custom-light: #8c6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5336ab",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 254.872,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43855,
    "c": 0.17643,
    "h": 288.3
  },
  "luminance": 0.07418
}

Semantic roles & 50–950 ramp

primary
#5336AB
secondary
#B0C27B
accent
#DB4CB8
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5336AB

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

Preview Lab → · Contrast checker → · Palette generator →

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