#5341AC#5341AC

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

Color values

HEX#5341AC
RGBrgb(83, 65, 172)
HSLhsl(250, 45%, 46%)
HSVhsv(250, 62%, 67%)
CMYKcmyk(51.7%, 62.2%, 0%, 32.5%)
CIE-LABlab(35.20, 36.29, -54.97)
CIE-LCHlch(35.20, 65.87, 303.43°)
OKLaboklab(45.66% 0.0441 -0.1575)
OKLCHoklch(45.66% 0.164 285.6)
XYZxyz(12.9018, 8.5975, 40.0014)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5341AC #9AAC41
analogous
#4165AC #5341AC #8941AC
triadic
#5341AC #AC5341 #41AC53
tetradic
#5341AC #AC4165 #9AAC41 #41AC89
square
#5341AC #AC4165 #9AAC41 #41AC89
split-complementary
#5341AC #AC8941 #65AC41
monochromatic
#281F53 #3E3080 #5341AC #7565C5 #9D92D6

Accessibility & contrast

On white

7.72
#5341AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5341AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5341AC#FFFFFF#000000##FFFFFF
##5341AC1.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)
#0056AF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#315A70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5341ac;
/* rgb */ color: rgb(83, 65, 172);
/* oklch */ color: oklch(45.7% 0.164 285.6);
Tailwind
colors: {
  custom: {
    50: '#8b76c5',
    500: '#5341ac',
    950: '#000000',
  },
}
SCSS
$custom: #5341ac;
$custom-light: #8b76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5341ac",
  "rgb": {
    "r": 83,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 250.093,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45661,
    "c": 0.16357,
    "h": 285.6
  },
  "luminance": 0.08598
}

Semantic roles & 50–950 ramp

primary
#5341AC
secondary
#B7C188
accent
#D553BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #5341AC

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

Preview Lab → · Contrast checker → · Palette generator →

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