#5A368D#5A368D

#5A368D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.139 H 299.5°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5A368D
RGBrgb(90, 54, 141)
HSLhsl(265, 45%, 38%)
HSVhsv(265, 62%, 55%)
CMYKcmyk(36.2%, 61.7%, 0%, 44.7%)
CIE-LABlab(31.20, 35.27, -42.63)
CIE-LCHlch(31.20, 55.33, 309.61°)
OKLaboklab(42.19% 0.0684 -0.121)
OKLCHoklch(42.19% 0.139 299.5)
XYZxyz(10.3422, 6.7350, 25.9492)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A368D #698D36
analogous
#363D8D #5A368D #85368D
triadic
#5A368D #8D5A36 #368D5A
tetradic
#5A368D #8D363D #698D36 #368D85
square
#5A368D #8D363D #698D36 #368D85
split-complementary
#5A368D #8D8536 #3D8D36
monochromatic
#221434 #3E2561 #5A368D #7647B9 #9774CA

Accessibility & contrast

On white

8.95
#5A368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A368D
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A368D#FFFFFF#000000##FFFFFF
##5A368D1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#17498B
Tritanopia (blue-blind)
#4F485C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a368d;
/* rgb */ color: rgb(90, 54, 141);
/* oklch */ color: oklch(42.2% 0.139 299.5);
Tailwind
colors: {
  custom: {
    50: '#8c6faf',
    500: '#5a368d',
    950: '#000000',
  },
}
SCSS
$custom: #5a368d;
$custom-light: #8c6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a368d",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 264.828,
    "s": 44.615,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42192,
    "c": 0.13898,
    "h": 299.5
  },
  "luminance": 0.06735
}

Semantic roles & 50–950 ramp

primary
#5A368D
secondary
#95B26D
accent
#D4539F
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A368D

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

Preview Lab → · Contrast checker → · Palette generator →

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