#5C4AAA#5C4AAA

#5C4AAA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 47.9% C 0.148 H 288.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5C4AAA
RGBrgb(92, 74, 170)
HSLhsl(251, 39%, 48%)
HSVhsv(251, 56%, 67%)
CMYKcmyk(45.9%, 56.5%, 0%, 33.3%)
CIE-LABlab(37.98, 32.13, -49.24)
CIE-LCHlch(37.98, 58.80, 303.12°)
OKLaboklab(47.86% 0.046 -0.1404)
OKLCHoklch(47.86% 0.148 288.1)
XYZxyz(14.1160, 10.0746, 39.2232)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C4AAA #98AA4A
analogous
#4A68AA #5C4AAA #8C4AAA
triadic
#5C4AAA #AA5C4A #4AAA5C
tetradic
#5C4AAA #AA4A68 #98AA4A #4AAA8C
square
#5C4AAA #AA4A68 #98AA4A #4AAA8C
split-complementary
#5C4AAA #AA8C4A #68AA4A
monochromatic
#2E2555 #45377F #5C4AAA #7F70C1 #A69BD3

Accessibility & contrast

On white

6.97
#5C4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5C4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C4AAA
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C4AAA#FFFFFF#000000##FFFFFF
##5C4AAA1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAD
Deuteranopia (green-blind)
#1357A8
Tritanopia (blue-blind)
#445F73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5c4aaa;
/* rgb */ color: rgb(92, 74, 170);
/* oklch */ color: oklch(47.9% 0.148 288.1);
Tailwind
colors: {
  custom: {
    50: '#8f7dc4',
    500: '#5c4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5c4aaa;
$custom-light: #8f7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c4aaa",
  "rgb": {
    "r": 92,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 251.25,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47858,
    "c": 0.1477,
    "h": 288.1
  },
  "luminance": 0.10075
}

Semantic roles & 50–950 ramp

primary
#5C4AAA
secondary
#B7C090
accent
#CF59B9
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5C4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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