#5A366A#5A366A

#5A366A is a dark, moderate purple. Relative luminance 0.059; OKLCH L 39.9% C 0.094 H 314.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5A366A
RGBrgb(90, 54, 106)
HSLhsl(282, 33%, 31%)
HSVhsv(282, 49%, 42%)
CMYKcmyk(15.1%, 49.1%, 0%, 58.4%)
CIE-LABlab(29.04, 26.23, -24.09)
CIE-LCHlch(29.04, 35.62, 317.44°)
OKLaboklab(39.91% 0.0662 -0.0669)
OKLCHoklch(39.91% 0.094 314.7)
XYZxyz(8.1367, 5.8528, 14.3340)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A366A #466A36
analogous
#40366A #5A366A #6A3660
triadic
#5A366A #6A5A36 #366A5A
tetradic
#5A366A #6A4036 #466A36 #36606A
square
#5A366A #6A4036 #466A36 #36606A
split-complementary
#5A366A #606A36 #366A40
monochromatic
#150D19 #382141 #5A366A #7C4B93 #9B68B2

Accessibility & contrast

On white

9.67
#5A366A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A366A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A366A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A366A#FFFFFF#000000##FFFFFF
##5A366A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C426C
Deuteranopia (green-blind)
#364569
Tritanopia (blue-blind)
#593E4B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a366a;
/* rgb */ color: rgb(90, 54, 106);
/* oklch */ color: oklch(39.9% 0.094 314.7);
Tailwind
colors: {
  custom: {
    50: '#8a6e95',
    500: '#5a366a',
    950: '#000000',
  },
}
SCSS
$custom: #5a366a;
$custom-light: #8a6e95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a366a",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 106
  },
  "hsl": {
    "h": 281.538,
    "s": 32.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39905,
    "c": 0.09405,
    "h": 314.7
  },
  "luminance": 0.05853
}

Semantic roles & 50–950 ramp

primary
#5A366A
secondary
#739B61
accent
#C95F80
background
#F8F6F9
surface
#F0ECF1
border
#CBC7CB
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5A366A

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

Preview Lab → · Contrast checker → · Palette generator →

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