#5A3C8F#5A3C8F

#5A3C8F is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.3% C 0.132 H 297.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5A3C8F
RGBrgb(90, 60, 143)
HSLhsl(262, 41%, 40%)
HSVhsv(262, 58%, 56%)
CMYKcmyk(37.1%, 58%, 0%, 43.9%)
CIE-LABlab(32.68, 32.29, -41.48)
CIE-LCHlch(32.68, 52.56, 307.90°)
OKLaboklab(43.32% 0.0606 -0.1176)
OKLCHoklch(43.32% 0.132 297.2)
XYZxyz(10.7890, 7.3884, 26.8390)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3C8F #718F3C
analogous
#3C478F #5A3C8F #843C8F
triadic
#5A3C8F #8F5A3C #3C8F5A
tetradic
#5A3C8F #8F3C47 #718F3C #3C8F84
square
#5A3C8F #8F3C47 #718F3C #3C8F84
split-complementary
#5A3C8F #8F843C #478F3C
monochromatic
#241839 #3F2A64 #5A3C8F #7652B6 #987DC8

Accessibility & contrast

On white

8.48
#5A3C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5A3C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3C8F
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3C8F#FFFFFF#000000##FFFFFF
##5A3C8F1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D92
Deuteranopia (green-blind)
#1F4C8D
Tritanopia (blue-blind)
#4E4D5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a3c8f;
/* rgb */ color: rgb(90, 60, 143);
/* oklch */ color: oklch(43.3% 0.132 297.2);
Tailwind
colors: {
  custom: {
    50: '#8c73b0',
    500: '#5a3c8f',
    950: '#000000',
  },
}
SCSS
$custom: #5a3c8f;
$custom-light: #8c73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3c8f",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 261.687,
    "s": 40.887,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43319,
    "c": 0.1323,
    "h": 297.2
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#5A3C8F
secondary
#9CB275
accent
#D157A5
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5A3C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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