#5335A2#5335A2

#5335A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.9% C 0.166 H 290.3°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5335A2
RGBrgb(83, 53, 162)
HSLhsl(257, 51%, 42%)
HSVhsv(257, 67%, 64%)
CMYKcmyk(48.8%, 67.3%, 0%, 36.5%)
CIE-LABlab(31.79, 40.29, -54.51)
CIE-LCHlch(31.79, 67.78, 306.47°)
OKLaboklab(42.94% 0.0576 -0.1562)
OKLCHoklch(42.94% 0.166 290.3)
XYZxyz(11.3601, 6.9934, 34.9267)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335A2 #84A235
analogous
#354DA2 #5335A2 #8A35A2
triadic
#5335A2 #A25335 #35A253
tetradic
#5335A2 #A2354D #84A235 #35A28A
square
#5335A2 #A2354D #84A235 #35A28A
split-complementary
#5335A2 #A28A35 #4DA235
monochromatic
#241746 #3B2674 #5335A2 #6F4FC5 #957DD4

Accessibility & contrast

On white

8.75
#5335A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5335A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335A2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335A2#FFFFFF#000000##FFFFFF
##5335A21.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#395067
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5335a2;
/* rgb */ color: rgb(83, 53, 162);
/* oklch */ color: oklch(42.9% 0.166 290.3);
Tailwind
colors: {
  custom: {
    50: '#8a6ebe',
    500: '#5335a2',
    950: '#000000',
  },
}
SCSS
$custom: #5335a2;
$custom-light: #8a6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5335a2",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 256.514,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42944,
    "c": 0.16647,
    "h": 290.3
  },
  "luminance": 0.06994
}

Semantic roles & 50–950 ramp

primary
#5335A2
secondary
#AABD75
accent
#DA4EB3
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5335A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5335A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva