#5C40AE#5C40AE

#5C40AE is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.167 H 290.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#5C40AE
RGBrgb(92, 64, 174)
HSLhsl(255, 46%, 47%)
HSVhsv(255, 63%, 68%)
CMYKcmyk(47.1%, 63.2%, 0%, 31.8%)
CIE-LABlab(35.98, 39.28, -54.85)
CIE-LCHlch(35.98, 67.47, 305.61°)
OKLaboklab(46.48% 0.0573 -0.1569)
OKLCHoklch(46.48% 0.167 290.1)
XYZxyz(13.8848, 8.9976, 41.0413)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40AE #92AE40
analogous
#405BAE #5C40AE #9340AE
triadic
#5C40AE #AE5C40 #40AE5C
tetradic
#5C40AE #AE405B #92AE40 #40AE93
square
#5C40AE #AE405B #92AE40 #40AE93
split-complementary
#5C40AE #AE9340 #5BAE40
monochromatic
#2D1F55 #443081 #5C40AE #7E65C6 #A392D7

Accessibility & contrast

On white

7.50
#5C40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5C40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C40AE
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40AE#FFFFFF#000000##FFFFFF
##5C40AE1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#425A71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5c40ae;
/* rgb */ color: rgb(92, 64, 174);
/* oklch */ color: oklch(46.5% 0.167 290.1);
Tailwind
colors: {
  custom: {
    50: '#9176c7',
    500: '#5c40ae',
    950: '#000000',
  },
}
SCSS
$custom: #5c40ae;
$custom-light: #9176c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40ae",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 255.273,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46484,
    "c": 0.16702,
    "h": 290.1
  },
  "luminance": 0.08998
}

Semantic roles & 50–950 ramp

primary
#5C40AE
secondary
#B3C288
accent
#D652B4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5C40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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