#5340AC#5340AC

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

Color values

HEX#5340AC
RGBrgb(83, 64, 172)
HSLhsl(251, 46%, 46%)
HSVhsv(251, 63%, 67%)
CMYKcmyk(51.7%, 62.8%, 0%, 32.5%)
CIE-LABlab(34.97, 36.89, -55.34)
CIE-LCHlch(34.97, 66.50, 303.69°)
OKLaboklab(45.5% 0.0451 -0.1586)
OKLCHoklch(45.5% 0.165 285.9)
XYZxyz(12.8449, 8.4837, 39.9824)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340AC #99AC40
analogous
#4063AC #5340AC #8940AC
triadic
#5340AC #AC5340 #40AC53
tetradic
#5340AC #AC4063 #99AC40 #40AC89
square
#5340AC #AC4063 #99AC40 #40AC89
split-complementary
#5340AC #AC8940 #63AC40
monochromatic
#281F53 #3D2F7F #5340AC #7564C5 #9D91D6

Accessibility & contrast

On white

7.79
#5340AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5340AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5340AC#FFFFFF#000000##FFFFFF
##5340AC1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#315A70
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5340ac;
/* rgb */ color: rgb(83, 64, 172);
/* oklch */ color: oklch(45.5% 0.165 285.9);
Tailwind
colors: {
  custom: {
    50: '#8b76c6',
    500: '#5340ac',
    950: '#000000',
  },
}
SCSS
$custom: #5340ac;
$custom-light: #8b76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5340ac",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 250.556,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45495,
    "c": 0.16491,
    "h": 285.9
  },
  "luminance": 0.08484
}

Semantic roles & 50–950 ramp

primary
#5340AC
secondary
#B7C187
accent
#D552BE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5340AC

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

Preview Lab → · Contrast checker → · Palette generator →

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