#5340AA#5340AA

#5340AA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.3% C 0.162 H 286.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5340AA
RGBrgb(83, 64, 170)
HSLhsl(251, 45%, 46%)
HSVhsv(251, 62%, 67%)
CMYKcmyk(51.2%, 62.4%, 0%, 33.3%)
CIE-LABlab(34.82, 36.27, -54.39)
CIE-LCHlch(34.82, 65.38, 303.70°)
OKLaboklab(45.34% 0.0453 -0.1558)
OKLCHoklch(45.34% 0.162 286.2)
XYZxyz(12.6542, 8.4075, 38.9784)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340AA #97AA40
analogous
#4062AA #5340AA #8840AA
triadic
#5340AA #AA5340 #40AA53
tetradic
#5340AA #AA4062 #97AA40 #40AA88
square
#5340AA #AA4062 #97AA40 #40AA88
split-complementary
#5340AA #AA8840 #62AA40
monochromatic
#281F51 #3D2F7E #5340AA #7463C4 #9C8FD5

Accessibility & contrast

On white

7.83
#5340AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5340AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340AA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340AA#FFFFFF#000000##FFFFFF
##5340AA1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5340aa;
/* rgb */ color: rgb(83, 64, 170);
/* oklch */ color: oklch(45.3% 0.162 286.2);
Tailwind
colors: {
  custom: {
    50: '#8b76c4',
    500: '#5340aa',
    950: '#000000',
  },
}
SCSS
$custom: #5340aa;
$custom-light: #8b76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5340aa",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 250.755,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45335,
    "c": 0.16227,
    "h": 286.2
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#5340AA
secondary
#B6C086
accent
#D553BE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5340AA

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

Preview Lab → · Contrast checker → · Palette generator →

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