#5336AF#5336AF

#5336AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.181 H 287.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5336AF
RGBrgb(83, 54, 175)
HSLhsl(254, 53%, 45%)
HSVhsv(254, 69%, 69%)
CMYKcmyk(52.6%, 69.1%, 0%, 31.4%)
CIE-LABlab(33.07, 43.56, -60.22)
CIE-LCHlch(33.07, 74.32, 305.88°)
OKLaboklab(44.2% 0.0547 -0.1729)
OKLCHoklch(44.2% 0.181 287.5)
XYZxyz(12.6220, 7.5719, 41.3456)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336AF #92AF36
analogous
#3656AF #5336AF #8F36AF
triadic
#5336AF #AF5336 #36AF53
tetradic
#5336AF #AF3656 #92AF36 #36AF8F
square
#5336AF #AF3656 #92AF36 #36AF8F
split-complementary
#5336AF #AF8F36 #56AF36
monochromatic
#271951 #3D2880 #5336AF #7357CB #9A86DA

Accessibility & contrast

On white

8.35
#5336AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5336AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5336AF
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336AF#FFFFFF#000000##FFFFFF
##5336AF1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#30556E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5336af;
/* rgb */ color: rgb(83, 54, 175);
/* oklch */ color: oklch(44.2% 0.181 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c6fc8',
    500: '#5336af',
    950: '#000000',
  },
}
SCSS
$custom: #5336af;
$custom-light: #8c6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5336af",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 175
  },
  "hsl": {
    "h": 254.38,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.442,
    "c": 0.18137,
    "h": 287.5
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#5336AF
secondary
#B3C37D
accent
#DC4CBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5336AF

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

Preview Lab → · Contrast checker → · Palette generator →

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