#5342A2#5342A2

#5342A2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.1% C 0.149 H 287.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5342A2
RGBrgb(83, 66, 162)
HSLhsl(251, 42%, 45%)
HSVhsv(251, 59%, 64%)
CMYKcmyk(48.8%, 59.3%, 0%, 36.5%)
CIE-LABlab(34.69, 32.59, -49.81)
CIE-LCHlch(34.69, 59.52, 303.20°)
OKLaboklab(45.05% 0.0434 -0.1423)
OKLCHoklch(45.05% 0.149 287)
XYZxyz(12.0352, 8.3435, 35.1517)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342A2 #91A242
analogous
#4261A2 #5342A2 #8342A2
triadic
#5342A2 #A25342 #42A253
tetradic
#5342A2 #A24261 #91A242 #42A283
square
#5342A2 #A24261 #91A242 #42A283
split-complementary
#5342A2 #A28342 #61A242
monochromatic
#261F4B #3D3077 #5342A2 #7362BF #9A8ED1

Accessibility & contrast

On white

7.87
#5342A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5342A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5342A2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342A2#FFFFFF#000000##FFFFFF
##5342A21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#38586B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5342a2;
/* rgb */ color: rgb(83, 66, 162);
/* oklch */ color: oklch(45.1% 0.149 287.0);
Tailwind
colors: {
  custom: {
    50: '#8977be',
    500: '#5342a2',
    950: '#000000',
  },
}
SCSS
$custom: #5342a2;
$custom-light: #8977be;
$custom-dark: #000000;
JSON
{
  "hex": "#5342a2",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 250.625,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45053,
    "c": 0.14881,
    "h": 287
  },
  "luminance": 0.08344
}

Semantic roles & 50–950 ramp

primary
#5342A2
secondary
#B2BC84
accent
#D256BC
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #5342A2

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

Preview Lab → · Contrast checker → · Palette generator →

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