#5C40A2#5C40A2

#5C40A2 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.6% C 0.151 H 292.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5C40A2
RGBrgb(92, 64, 162)
HSLhsl(257, 43%, 44%)
HSVhsv(257, 60%, 64%)
CMYKcmyk(43.2%, 60.5%, 0%, 36.5%)
CIE-LABlab(35.10, 35.79, -49.09)
CIE-LCHlch(35.10, 60.75, 306.09°)
OKLaboklab(45.57% 0.058 -0.1399)
OKLCHoklch(45.57% 0.152 292.5)
XYZxyz(12.7668, 8.5504, 35.1531)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40A2 #86A240
analogous
#4055A2 #5C40A2 #8D40A2
triadic
#5C40A2 #A25C40 #40A25C
tetradic
#5C40A2 #A24055 #86A240 #40A28D
square
#5C40A2 #A24055 #86A240 #40A28D
split-complementary
#5C40A2 #A28D40 #55A240
monochromatic
#2A1D4A #432F76 #5C40A2 #7B5FC0 #9F8BD1

Accessibility & contrast

On white

7.75
#5C40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5C40A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C40A2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40A2#FFFFFF#000000##FFFFFF
##5C40A21.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#0451A0
Tritanopia (blue-blind)
#49566B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5c40a2;
/* rgb */ color: rgb(92, 64, 162);
/* oklch */ color: oklch(45.6% 0.151 292.5);
Tailwind
colors: {
  custom: {
    50: '#8f76be',
    500: '#5c40a2',
    950: '#000000',
  },
}
SCSS
$custom: #5c40a2;
$custom-light: #8f76be;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40a2",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 257.143,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45568,
    "c": 0.1515,
    "h": 292.5
  },
  "luminance": 0.08551
}

Semantic roles & 50–950 ramp

primary
#5C40A2
secondary
#ABBC82
accent
#D355AF
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5C40A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5C40A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva