#5340AF#5340AF

#5340AF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.7% C 0.169 H 285.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5340AF
RGBrgb(83, 64, 175)
HSLhsl(250, 46%, 47%)
HSVhsv(250, 63%, 69%)
CMYKcmyk(52.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(35.20, 37.81, -56.75)
CIE-LCHlch(35.20, 68.19, 303.67°)
OKLaboklab(45.74% 0.0449 -0.1627)
OKLCHoklch(45.74% 0.169 285.4)
XYZxyz(13.1362, 8.6003, 41.5170)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340AF #9CAF40
analogous
#4065AF #5340AF #8B40AF
triadic
#5340AF #AF5340 #40AF53
tetradic
#5340AF #AF4065 #9CAF40 #40AF8B
square
#5340AF #AF4065 #9CAF40 #40AF8B
split-complementary
#5340AF #AF8B40 #65AF40
monochromatic
#281F55 #3E3082 #5340AF #7665C7 #9E92D7

Accessibility & contrast

On white

7.72
#5340AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5340AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5340AF#FFFFFF#000000##FFFFFF
##5340AF1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#2F5B71
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5340af;
/* rgb */ color: rgb(83, 64, 175);
/* oklch */ color: oklch(45.7% 0.169 285.4);
Tailwind
colors: {
  custom: {
    50: '#8b76c8',
    500: '#5340af',
    950: '#000000',
  },
}
SCSS
$custom: #5340af;
$custom-light: #8b76c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5340af",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 250.27,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45737,
    "c": 0.16883,
    "h": 285.4
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#5340AF
secondary
#B9C388
accent
#D652BF
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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