#5A309B#5A309B

#5A309B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.165 H 296.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A309B
RGBrgb(90, 48, 155)
HSLhsl(264, 53%, 40%)
HSVhsv(264, 69%, 61%)
CMYKcmyk(41.9%, 69%, 0%, 39.2%)
CIE-LABlab(31.01, 42.43, -51.51)
CIE-LCHlch(31.01, 66.74, 309.48°)
OKLaboklab(42.38% 0.0741 -0.1471)
OKLCHoklch(42.38% 0.165 296.7)
XYZxyz(11.1883, 6.6539, 31.6989)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A309B #719B30
analogous
#303C9B #5A309B #8F309B
triadic
#5A309B #9B5A30 #309B5A
tetradic
#5A309B #9B303C #719B30 #309B8F
square
#5A309B #9B303C #719B30 #309B8F
split-complementary
#5A309B #9B8F30 #3C9B30
monochromatic
#24133E #3F226C #5A309B #7643C5 #9872D3

Accessibility & contrast

On white

9.01
#5A309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A309B
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A309B#FFFFFF#000000##FFFFFF
##5A309B1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#494A61
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a309b;
/* rgb */ color: rgb(90, 48, 155);
/* oklch */ color: oklch(42.4% 0.165 296.7);
Tailwind
colors: {
  custom: {
    50: '#8e6bb9',
    500: '#5a309b',
    950: '#000000',
  },
}
SCSS
$custom: #5a309b;
$custom-light: #8e6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a309b",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 263.551,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42384,
    "c": 0.16471,
    "h": 296.7
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#5A309B
secondary
#9CBB6C
accent
#DC4CA3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A309B

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

Preview Lab → · Contrast checker → · Palette generator →

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