#5A368F#5A368F

#5A368F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.142 H 298.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5A368F
RGBrgb(90, 54, 143)
HSLhsl(264, 45%, 39%)
HSVhsv(264, 62%, 56%)
CMYKcmyk(37.1%, 62.2%, 0%, 43.9%)
CIE-LABlab(31.34, 35.82, -43.63)
CIE-LCHlch(31.34, 56.45, 309.39°)
OKLaboklab(42.34% 0.0683 -0.1239)
OKLCHoklch(42.34% 0.142 298.8)
XYZxyz(10.4923, 6.7950, 26.7401)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A368F #6B8F36
analogous
#363E8F #5A368F #86368F
triadic
#5A368F #8F5A36 #368F5A
tetradic
#5A368F #8F363E #6B8F36 #368F86
square
#5A368F #8F363E #6B8F36 #368F86
split-complementary
#5A368F #8F8636 #3E8F36
monochromatic
#221436 #3E2563 #5A368F #7648BA #9775CB

Accessibility & contrast

On white

8.90
#5A368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5A368F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A368F
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A368F#FFFFFF#000000##FFFFFF
##5A368F1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#13498D
Tritanopia (blue-blind)
#4E495D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a368f;
/* rgb */ color: rgb(90, 54, 143);
/* oklch */ color: oklch(42.3% 0.142 298.8);
Tailwind
colors: {
  custom: {
    50: '#8d6fb0',
    500: '#5a368f',
    950: '#000000',
  },
}
SCSS
$custom: #5a368f;
$custom-light: #8d6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a368f",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 264.27,
    "s": 45.178,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42339,
    "c": 0.14151,
    "h": 298.8
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#5A368F
secondary
#97B36D
accent
#D553A0
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #5A368F

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

Preview Lab → · Contrast checker → · Palette generator →

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