#5A3192#5A3192

#5A3192 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.153 H 299.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5A3192
RGBrgb(90, 49, 146)
HSLhsl(265, 50%, 38%)
HSVhsv(265, 66%, 57%)
CMYKcmyk(38.4%, 66.4%, 0%, 42.7%)
CIE-LABlab(30.51, 39.45, -46.81)
CIE-LCHlch(30.51, 61.22, 310.13°)
OKLaboklab(41.81% 0.0741 -0.1333)
OKLCHoklch(41.81% 0.153 299.1)
XYZxyz(10.5018, 6.4455, 27.8794)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3192 #699231
analogous
#313892 #5A3192 #8A3192
triadic
#5A3192 #925A31 #31925A
tetradic
#5A3192 #923138 #699231 #31928A
square
#5A3192 #923138 #699231 #31928A
split-complementary
#5A3192 #928A31 #389231
monochromatic
#221236 #3E2264 #5A3192 #7641BF #976FCF

Accessibility & contrast

On white

9.17
#5A3192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5A3192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3192
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3192#FFFFFF#000000##FFFFFF
##5A31921.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#4D475D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a3192;
/* rgb */ color: rgb(90, 49, 146);
/* oklch */ color: oklch(41.8% 0.153 299.1);
Tailwind
colors: {
  custom: {
    50: '#8d6cb3',
    500: '#5a3192',
    950: '#000000',
  },
}
SCSS
$custom: #5a3192;
$custom-light: #8d6cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3192",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 146
  },
  "hsl": {
    "h": 265.361,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.15252,
    "h": 299.1
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#5A3192
secondary
#95B669
accent
#D94F9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3192

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

Preview Lab → · Contrast checker → · Palette generator →

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