#5C47AF#5C47AF

#5C47AF is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.7% C 0.159 H 288.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5C47AF
RGBrgb(92, 71, 175)
HSLhsl(252, 42%, 48%)
HSVhsv(252, 59%, 69%)
CMYKcmyk(47.4%, 59.4%, 0%, 31.4%)
CIE-LABlab(37.62, 35.45, -52.79)
CIE-LCHlch(37.62, 63.59, 303.88°)
OKLaboklab(47.71% 0.0494 -0.1508)
OKLCHoklch(47.71% 0.159 288.2)
XYZxyz(14.4025, 9.8763, 41.6966)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C47AF #9AAF47
analogous
#4766AF #5C47AF #9047AF
triadic
#5C47AF #AF5C47 #47AF5C
tetradic
#5C47AF #AF4766 #9AAF47 #47AF90
square
#5C47AF #AF4766 #9AAF47 #47AF90
split-complementary
#5C47AF #AF9047 #66AF47
monochromatic
#2E2458 #453583 #5C47AF #806FC4 #A69AD6

Accessibility & contrast

On white

7.06
#5C47AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5C47AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C47AF
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C47AF#FFFFFF#000000##FFFFFF
##5C47AF1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#415F74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5c47af;
/* rgb */ color: rgb(92, 71, 175);
/* oklch */ color: oklch(47.7% 0.159 288.2);
Tailwind
colors: {
  custom: {
    50: '#907bc8',
    500: '#5c47af',
    950: '#000000',
  },
}
SCSS
$custom: #5c47af;
$custom-light: #907bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c47af",
  "rgb": {
    "r": 92,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 252.115,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47706,
    "c": 0.1587,
    "h": 288.2
  },
  "luminance": 0.09877
}

Semantic roles & 50–950 ramp

primary
#5C47AF
secondary
#B8C28F
accent
#D256B9
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5C47AF

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

Preview Lab → · Contrast checker → · Palette generator →

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