#5A367F#5A367F

#5A367F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.2% C 0.121 H 304.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5A367F
RGBrgb(90, 54, 127)
HSLhsl(270, 40%, 35%)
HSVhsv(270, 57%, 50%)
CMYKcmyk(29.1%, 57.5%, 0%, 50.2%)
CIE-LABlab(30.27, 31.52, -35.43)
CIE-LCHlch(30.27, 47.42, 311.66°)
OKLaboklab(41.21% 0.0683 -0.0999)
OKLCHoklch(41.21% 0.121 304.4)
XYZxyz(9.3655, 6.3443, 20.8057)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A367F #5B7F36
analogous
#36377F #5A367F #7E367F
triadic
#5A367F #7F5A36 #367F5A
tetradic
#5A367F #7F3637 #5B7F36 #367F7E
square
#5A367F #7F3637 #5B7F36 #367F7E
split-complementary
#5A367F #7F7E36 #377F36
monochromatic
#1D1129 #3C2454 #5A367F #7848AA #976EC1

Accessibility & contrast

On white

9.26
#5A367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A367F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A367F
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A367F#FFFFFF#000000##FFFFFF
##5A367F1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#28477D
Tritanopia (blue-blind)
#544455
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a367f;
/* rgb */ color: rgb(90, 54, 127);
/* oklch */ color: oklch(41.2% 0.121 304.4);
Tailwind
colors: {
  custom: {
    50: '#8b6ea4',
    500: '#5a367f',
    950: '#000000',
  },
}
SCSS
$custom: #5a367f;
$custom-light: #8b6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a367f",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 269.589,
    "s": 40.331,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41212,
    "c": 0.12102,
    "h": 304.4
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#5A367F
secondary
#89AA67
accent
#D05895
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5A367F

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

Preview Lab → · Contrast checker → · Palette generator →

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