#5A388E#5A388E

#5A388E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.6% C 0.137 H 298.6°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5A388E
RGBrgb(90, 56, 142)
HSLhsl(264, 43%, 39%)
HSVhsv(264, 61%, 56%)
CMYKcmyk(36.6%, 60.6%, 0%, 44.3%)
CIE-LABlab(31.70, 34.38, -42.42)
CIE-LCHlch(31.70, 54.61, 309.02°)
OKLaboklab(42.59% 0.0658 -0.1204)
OKLCHoklch(42.59% 0.137 298.6)
XYZxyz(10.5119, 6.9549, 26.3745)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A388E #6C8E38
analogous
#38418E #5A388E #85388E
triadic
#5A388E #8E5A38 #388E5A
tetradic
#5A388E #8E3841 #6C8E38 #388E85
square
#5A388E #8E3841 #6C8E38 #388E85
split-complementary
#5A388E #8E8538 #418E38
monochromatic
#221536 #3E2762 #5A388E #764BB8 #9877C9

Accessibility & contrast

On white

8.78
#5A388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A388E
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A388E#FFFFFF#000000##FFFFFF
##5A388E1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B91
Deuteranopia (green-blind)
#194A8C
Tritanopia (blue-blind)
#4E4A5D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a388e;
/* rgb */ color: rgb(90, 56, 142);
/* oklch */ color: oklch(42.6% 0.137 298.6);
Tailwind
colors: {
  custom: {
    50: '#8c70b0',
    500: '#5a388e',
    950: '#000000',
  },
}
SCSS
$custom: #5a388e;
$custom-light: #8c70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a388e",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 263.721,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42585,
    "c": 0.1372,
    "h": 298.6
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#5A388E
secondary
#98B26F
accent
#D355A1
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A388E

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

Preview Lab → · Contrast checker → · Palette generator →

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