#5336B3#5336B3

#5336B3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.186 H 286.8°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5336B3
RGBrgb(83, 54, 179)
HSLhsl(254, 54%, 46%)
HSVhsv(254, 70%, 70%)
CMYKcmyk(53.6%, 69.8%, 0%, 29.8%)
CIE-LABlab(33.42, 44.75, -62.04)
CIE-LCHlch(33.42, 76.49, 305.80°)
OKLaboklab(44.55% 0.054 -0.1783)
OKLCHoklch(44.55% 0.186 286.8)
XYZxyz(13.0207, 7.7313, 43.4453)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5336B3 #96B336
analogous
#3657B3 #5336B3 #9136B3
triadic
#5336B3 #B35336 #36B353
tetradic
#5336B3 #B33657 #96B336 #36B391
square
#5336B3 #B33657 #96B336 #36B391
split-complementary
#5336B3 #B39136 #57B336
monochromatic
#271A55 #3D2884 #5336B3 #7459CD #9B88DB

Accessibility & contrast

On white

8.25
#5336B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5336B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5336B3
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5336B3#FFFFFF#000000##FFFFFF
##5336B31.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#2C5670
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5336b3;
/* rgb */ color: rgb(83, 54, 179);
/* oklch */ color: oklch(44.6% 0.186 286.8);
Tailwind
colors: {
  custom: {
    50: '#8d6fcb',
    500: '#5336b3',
    950: '#000000',
  },
}
SCSS
$custom: #5336b3;
$custom-light: #8d6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5336b3",
  "rgb": {
    "r": 83,
    "g": 54,
    "b": 179
  },
  "hsl": {
    "h": 253.92,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44551,
    "c": 0.18627,
    "h": 286.8
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#5336B3
secondary
#B5C580
accent
#DD4BBB
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5336B3

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

Preview Lab → · Contrast checker → · Palette generator →

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