#5A366F#5A366F

#5A366F is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.2% C 0.100 H 311.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5A366F
RGBrgb(90, 54, 111)
HSLhsl(278, 35%, 32%)
HSVhsv(278, 51%, 44%)
CMYKcmyk(18.9%, 51.4%, 0%, 56.5%)
CIE-LABlab(29.31, 27.45, -26.85)
CIE-LCHlch(29.31, 38.40, 315.63°)
OKLaboklab(40.2% 0.0669 -0.0748)
OKLCHoklch(40.2% 0.1 311.8)
XYZxyz(8.4044, 5.9599, 15.7435)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A366F #4B6F36
analogous
#3E366F #5A366F #6F3667
triadic
#5A366F #6F5A36 #366F5A
tetradic
#5A366F #6F3E36 #4B6F36 #36676F
square
#5A366F #6F3E36 #4B6F36 #36676F
split-complementary
#5A366F #676F36 #366F3E
monochromatic
#170E1D #392246 #5A366F #7B4A98 #9A69B6

Accessibility & contrast

On white

9.58
#5A366F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A366F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A366F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A366F#FFFFFF#000000##FFFFFF
##5A366F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294371
Deuteranopia (green-blind)
#33466D
Tritanopia (blue-blind)
#583F4D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a366f;
/* rgb */ color: rgb(90, 54, 111);
/* oklch */ color: oklch(40.2% 0.100 311.8);
Tailwind
colors: {
  custom: {
    50: '#8a6e98',
    500: '#5a366f',
    950: '#000000',
  },
}
SCSS
$custom: #5a366f;
$custom-light: #8a6e98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a366f",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 111
  },
  "hsl": {
    "h": 277.895,
    "s": 34.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40197,
    "c": 0.10041,
    "h": 311.8
  },
  "luminance": 0.0596
}

Semantic roles & 50–950 ramp

primary
#5A366F
secondary
#789F62
accent
#CB5D86
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070E
muted
#7D7A7E

Preview Lab

Preview with #5A366F

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

Preview Lab → · Contrast checker → · Palette generator →

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