#5A397D#5A397D

#5A397D is a dark, moderate violet. Relative luminance 0.066; OKLCH L 41.6% C 0.113 H 304.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5A397D
RGBrgb(90, 57, 125)
HSLhsl(269, 37%, 36%)
HSVhsv(269, 54%, 49%)
CMYKcmyk(28%, 54.4%, 0%, 51%)
CIE-LABlab(30.83, 29.20, -33.27)
CIE-LCHlch(30.83, 44.27, 311.27°)
OKLaboklab(41.59% 0.0639 -0.0936)
OKLCHoklch(41.59% 0.113 304.3)
XYZxyz(9.3804, 6.5806, 20.1741)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A397D #5C7D39
analogous
#393A7D #5A397D #7C397D
triadic
#5A397D #7D5A39 #397D5A
tetradic
#5A397D #7D393A #5C7D39 #397D7C
square
#5A397D #7D393A #5C7D39 #397D7C
split-complementary
#5A397D #7D7C39 #3A7D39
monochromatic
#1D1329 #3C2653 #5A397D #784CA7 #9772BF

Accessibility & contrast

On white

9.07
#5A397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A397D
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A397D#FFFFFF#000000##FFFFFF
##5A397D1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#2D497B
Tritanopia (blue-blind)
#544555
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a397d;
/* rgb */ color: rgb(90, 57, 125);
/* oklch */ color: oklch(41.6% 0.113 304.3);
Tailwind
colors: {
  custom: {
    50: '#8b70a3',
    500: '#5a397d',
    950: '#000000',
  },
}
SCSS
$custom: #5a397d;
$custom-light: #8b70a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a397d",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 269.118,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4159,
    "c": 0.11332,
    "h": 304.3
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#5A397D
secondary
#8AA86A
accent
#CD5A96
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5A397D

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

Preview Lab → · Contrast checker → · Palette generator →

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