#5A309D#5A309D

#5A309D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.167 H 296.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5A309D
RGBrgb(90, 48, 157)
HSLhsl(263, 53%, 40%)
HSVhsv(263, 69%, 62%)
CMYKcmyk(42.7%, 69.4%, 0%, 38.4%)
CIE-LABlab(31.16, 42.98, -52.47)
CIE-LCHlch(31.16, 67.82, 309.32°)
OKLaboklab(42.55% 0.0738 -0.1499)
OKLCHoklch(42.55% 0.167 296.2)
XYZxyz(11.3576, 6.7216, 32.5908)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A309D #739D30
analogous
#303D9D #5A309D #90309D
triadic
#5A309D #9D5A30 #309D5A
tetradic
#5A309D #9D303D #739D30 #309D90
square
#5A309D #9D303D #739D30 #309D90
split-complementary
#5A309D #9D9030 #3D9D30
monochromatic
#24133F #3F226E #5A309D #7644C6 #9973D4

Accessibility & contrast

On white

8.96
#5A309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A309D
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A309D#FFFFFF#000000##FFFFFF
##5A309D1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#494A62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a309d;
/* rgb */ color: rgb(90, 48, 157);
/* oklch */ color: oklch(42.5% 0.167 296.2);
Tailwind
colors: {
  custom: {
    50: '#8e6bbb',
    500: '#5a309d',
    950: '#000000',
  },
}
SCSS
$custom: #5a309d;
$custom-light: #8e6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a309d",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 263.119,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42547,
    "c": 0.16708,
    "h": 296.2
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#5A309D
secondary
#9EBC6D
accent
#DD4BA5
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A309D

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

Preview Lab → · Contrast checker → · Palette generator →

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