#5A3091#5A3091

#5A3091 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.153 H 299.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5A3091
RGBrgb(90, 48, 145)
HSLhsl(266, 50%, 38%)
HSVhsv(266, 67%, 57%)
CMYKcmyk(37.9%, 66.9%, 0%, 43.1%)
CIE-LABlab(30.23, 39.73, -46.64)
CIE-LCHlch(30.23, 61.27, 310.43°)
OKLaboklab(41.59% 0.0754 -0.1328)
OKLCHoklch(41.59% 0.153 299.6)
XYZxyz(10.3830, 6.3318, 27.4577)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3091 #679130
analogous
#303791 #5A3091 #8A3091
triadic
#5A3091 #915A30 #30915A
tetradic
#5A3091 #913037 #679130 #30918A
square
#5A3091 #913037 #679130 #30918A
split-complementary
#5A3091 #918A30 #379130
monochromatic
#211235 #3D2163 #5A3091 #773FBF #976DCF

Accessibility & contrast

On white

9.27
#5A3091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A3091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3091
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3091#FFFFFF#000000##FFFFFF
##5A30911.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#4E465C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a3091;
/* rgb */ color: rgb(90, 48, 145);
/* oklch */ color: oklch(41.6% 0.153 299.6);
Tailwind
colors: {
  custom: {
    50: '#8d6bb2',
    500: '#5a3091',
    950: '#000000',
  },
}
SCSS
$custom: #5a3091;
$custom-light: #8d6bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3091",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 145
  },
  "hsl": {
    "h": 265.979,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41587,
    "c": 0.15271,
    "h": 299.6
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#5A3091
secondary
#94B667
accent
#DA4E9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3091

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

Preview Lab → · Contrast checker → · Palette generator →

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