#5A398E#5A398E

#5A398E is a dark, vivid violet. Relative luminance 0.071; OKLCH L 42.7% C 0.136 H 298.4°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5A398E
RGBrgb(90, 57, 142)
HSLhsl(263, 43%, 39%)
HSVhsv(263, 60%, 56%)
CMYKcmyk(36.6%, 59.9%, 0%, 44.3%)
CIE-LABlab(31.93, 33.79, -42.07)
CIE-LCHlch(31.93, 53.96, 308.78°)
OKLaboklab(42.75% 0.0645 -0.1193)
OKLCHoklch(42.75% 0.136 298.4)
XYZxyz(10.5608, 7.0528, 26.3909)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A398E #6D8E39
analogous
#39438E #5A398E #85398E
triadic
#5A398E #8E5A39 #398E5A
tetradic
#5A398E #8E3943 #6D8E39 #398E85
square
#5A398E #8E3943 #6D8E39 #398E85
split-complementary
#5A398E #8E8539 #438E39
monochromatic
#231637 #3E2762 #5A398E #764DB7 #9878C9

Accessibility & contrast

On white

8.71
#5A398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A398E
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A398E#FFFFFF#000000##FFFFFF
##5A398E1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#1B4A8C
Tritanopia (blue-blind)
#4E4B5E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a398e;
/* rgb */ color: rgb(90, 57, 142);
/* oklch */ color: oklch(42.7% 0.136 298.4);
Tailwind
colors: {
  custom: {
    50: '#8c71b0',
    500: '#5a398e',
    950: '#000000',
  },
}
SCSS
$custom: #5a398e;
$custom-light: #8c71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a398e",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 263.294,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42748,
    "c": 0.13565,
    "h": 298.4
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

primary
#5A398E
secondary
#99B271
accent
#D255A2
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5A398E

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

Preview Lab → · Contrast checker → · Palette generator →

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