#5A367D#5A367D

#5A367D is a dark, moderate violet. Relative luminance 0.063; OKLCH L 41.1% C 0.118 H 305.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5A367D
RGBrgb(90, 54, 125)
HSLhsl(270, 40%, 35%)
HSVhsv(270, 57%, 49%)
CMYKcmyk(28%, 56.8%, 0%, 51%)
CIE-LABlab(30.14, 31.00, -34.38)
CIE-LCHlch(30.14, 46.29, 312.04°)
OKLaboklab(41.08% 0.0682 -0.0968)
OKLCHoklch(41.08% 0.118 305.2)
XYZxyz(9.2365, 6.2927, 20.1261)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A367D #597D36
analogous
#37367D #5A367D #7D367C
triadic
#5A367D #7D5A36 #367D5A
tetradic
#5A367D #7D3736 #597D36 #367C7D
square
#5A367D #7D3736 #597D36 #367C7D
split-complementary
#5A367D #7C7D36 #367D37
monochromatic
#1C1128 #3B2452 #5A367D #7948A8 #976DC0

Accessibility & contrast

On white

9.30
#5A367D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A367D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A367D
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A367D#FFFFFF#000000##FFFFFF
##5A367D1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#29477B
Tritanopia (blue-blind)
#544354
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a367d;
/* rgb */ color: rgb(90, 54, 125);
/* oklch */ color: oklch(41.1% 0.118 305.2);
Tailwind
colors: {
  custom: {
    50: '#8b6ea3',
    500: '#5a367d',
    950: '#000000',
  },
}
SCSS
$custom: #5a367d;
$custom-light: #8b6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a367d",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 125
  },
  "hsl": {
    "h": 270.423,
    "s": 39.665,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41078,
    "c": 0.11844,
    "h": 305.2
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#5A367D
secondary
#87A966
accent
#D05893
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5A367D

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

Preview Lab → · Contrast checker → · Palette generator →

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