#5341AA#5341AA

#5341AA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.5% C 0.161 H 285.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5341AA
RGBrgb(83, 65, 170)
HSLhsl(250, 45%, 46%)
HSVhsv(250, 62%, 67%)
CMYKcmyk(51.2%, 61.8%, 0%, 33.3%)
CIE-LABlab(35.05, 35.67, -54.02)
CIE-LCHlch(35.05, 64.74, 303.43°)
OKLaboklab(45.5% 0.0442 -0.1547)
OKLCHoklch(45.5% 0.161 285.9)
XYZxyz(12.7111, 8.5212, 38.9974)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5341AA #98AA41
analogous
#4163AA #5341AA #8741AA
triadic
#5341AA #AA5341 #41AA53
tetradic
#5341AA #AA4163 #98AA41 #41AA87
square
#5341AA #AA4163 #98AA41 #41AA87
split-complementary
#5341AA #AA8741 #63AA41
monochromatic
#281F51 #3D307E #5341AA #7564C4 #9C91D5

Accessibility & contrast

On white

7.77
#5341AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5341AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5341AA
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5341AA#FFFFFF#000000##FFFFFF
##5341AA1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#335A6F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5341aa;
/* rgb */ color: rgb(83, 65, 170);
/* oklch */ color: oklch(45.5% 0.161 285.9);
Tailwind
colors: {
  custom: {
    50: '#8b76c4',
    500: '#5341aa',
    950: '#000000',
  },
}
SCSS
$custom: #5341aa;
$custom-light: #8b76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5341aa",
  "rgb": {
    "r": 83,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 250.286,
    "s": 44.681,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45502,
    "c": 0.16093,
    "h": 285.9
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#5341AA
secondary
#B6C087
accent
#D453BE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5341AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5341AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva