#5A368C#5A368C

#5A368C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.1% C 0.138 H 299.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5A368C
RGBrgb(90, 54, 140)
HSLhsl(265, 44%, 38%)
HSVhsv(265, 61%, 55%)
CMYKcmyk(35.7%, 61.4%, 0%, 45.1%)
CIE-LABlab(31.13, 35.00, -42.12)
CIE-LCHlch(31.13, 54.77, 309.73°)
OKLaboklab(42.12% 0.0684 -0.1195)
OKLCHoklch(42.12% 0.138 299.8)
XYZxyz(10.2681, 6.7054, 25.5592)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A368C #688C36
analogous
#363D8C #5A368C #85368C
triadic
#5A368C #8C5A36 #368C5A
tetradic
#5A368C #8C363D #688C36 #368C85
square
#5A368C #8C363D #688C36 #368C85
split-complementary
#5A368C #8C8536 #3D8C36
monochromatic
#211434 #3E2560 #5A368C #7647B8 #9773C9

Accessibility & contrast

On white

8.97
#5A368C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A368C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A368C
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A368C#FFFFFF#000000##FFFFFF
##5A368C1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02498F
Deuteranopia (green-blind)
#19498A
Tritanopia (blue-blind)
#4F485B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a368c;
/* rgb */ color: rgb(90, 54, 140);
/* oklch */ color: oklch(42.1% 0.138 299.8);
Tailwind
colors: {
  custom: {
    50: '#8c6fae',
    500: '#5a368c',
    950: '#000000',
  },
}
SCSS
$custom: #5a368c;
$custom-light: #8c6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a368c",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 140
  },
  "hsl": {
    "h": 265.116,
    "s": 44.33,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42119,
    "c": 0.13769,
    "h": 299.8
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#5A368C
secondary
#95B26C
accent
#D4549E
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A368C

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

Preview Lab → · Contrast checker → · Palette generator →

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