#5A366E#5A366E

#5A366E is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.1% C 0.099 H 312.4°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5A366E
RGBrgb(90, 54, 110)
HSLhsl(279, 34%, 32%)
HSVhsv(279, 51%, 43%)
CMYKcmyk(18.2%, 50.9%, 0%, 56.9%)
CIE-LABlab(29.26, 27.20, -26.30)
CIE-LCHlch(29.26, 37.84, 315.96°)
OKLaboklab(40.14% 0.0668 -0.0732)
OKLCHoklch(40.14% 0.099 312.4)
XYZxyz(8.3496, 5.9380, 15.4551)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A366E #4A6E36
analogous
#3E366E #5A366E #6E3666
triadic
#5A366E #6E5A36 #366E5A
tetradic
#5A366E #6E3E36 #4A6E36 #36666E
square
#5A366E #6E3E36 #4A6E36 #36666E
split-complementary
#5A366E #666E36 #366E3E
monochromatic
#170E1C #382245 #5A366E #7C4A97 #9A69B5

Accessibility & contrast

On white

9.60
#5A366E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A366E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A366E#FFFFFF#000000##FFFFFF
##5A366E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a366e;
/* rgb */ color: rgb(90, 54, 110);
/* oklch */ color: oklch(40.1% 0.099 312.4);
Tailwind
colors: {
  custom: {
    50: '#8a6e98',
    500: '#5a366e',
    950: '#000000',
  },
}
SCSS
$custom: #5a366e;
$custom-light: #8a6e98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a366e",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 110
  },
  "hsl": {
    "h": 278.571,
    "s": 34.146,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40137,
    "c": 0.09913,
    "h": 312.4
  },
  "luminance": 0.05938
}

Semantic roles & 50–950 ramp

primary
#5A366E
secondary
#779E62
accent
#CA5E84
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5A366E

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

Preview Lab → · Contrast checker → · Palette generator →

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