#5336B2#5336B2

#5336B2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.185 H 287.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5336B2
RGBrgb(83, 54, 178)
HSLhsl(254, 53%, 45%)
HSVhsv(254, 70%, 70%)
CMYKcmyk(53.4%, 69.7%, 0%, 30.2%)
CIE-LABlab(33.33, 44.45, -61.58)
CIE-LCHlch(33.33, 75.95, 305.82°)
OKLaboklab(44.46% 0.0541 -0.1769)
OKLCHoklch(44.46% 0.185 287)
XYZxyz(12.9199, 7.6910, 42.9146)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336B2 #95B236
analogous
#3657B2 #5336B2 #9136B2
triadic
#5336B2 #B25336 #36B253
tetradic
#5336B2 #B23657 #95B236 #36B291
square
#5336B2 #B23657 #95B236 #36B291
split-complementary
#5336B2 #B29136 #57B236
monochromatic
#271A54 #3D2883 #5336B2 #7459CD #9B88DB

Accessibility & contrast

On white

8.27
#5336B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5336B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5336B2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336B2#FFFFFF#000000##FFFFFF
##5336B21.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#2D5670
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5336b2;
/* rgb */ color: rgb(83, 54, 178);
/* oklch */ color: oklch(44.5% 0.185 287.0);
Tailwind
colors: {
  custom: {
    50: '#8d6fca',
    500: '#5336b2',
    950: '#000000',
  },
}
SCSS
$custom: #5336b2;
$custom-light: #8d6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5336b2",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 254.032,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44463,
    "c": 0.18505,
    "h": 287
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#5336B2
secondary
#B4C57F
accent
#DD4BBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5336B2

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

Preview Lab → · Contrast checker → · Palette generator →

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