#5A309A#5A309A

#5A309A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.164 H 297.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5A309A
RGBrgb(90, 48, 154)
HSLhsl(264, 52%, 40%)
HSVhsv(264, 69%, 60%)
CMYKcmyk(41.6%, 68.8%, 0%, 39.6%)
CIE-LABlab(30.93, 42.16, -51.03)
CIE-LCHlch(30.93, 66.19, 309.56°)
OKLaboklab(42.3% 0.0742 -0.1457)
OKLCHoklch(42.3% 0.164 297)
XYZxyz(11.1046, 6.6205, 31.2584)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A309A #709A30
analogous
#303B9A #5A309A #8F309A
triadic
#5A309A #9A5A30 #309A5A
tetradic
#5A309A #9A303B #709A30 #309A8F
square
#5A309A #9A303B #709A30 #309A8F
split-complementary
#5A309A #9A8F30 #3B9A30
monochromatic
#23133D #3F216B #5A309A #7643C4 #9872D3

Accessibility & contrast

On white

9.04
#5A309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A309A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A309A#FFFFFF#000000##FFFFFF
##5A309A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#4A4961
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a309a;
/* rgb */ color: rgb(90, 48, 154);
/* oklch */ color: oklch(42.3% 0.164 297.0);
Tailwind
colors: {
  custom: {
    50: '#8e6bb9',
    500: '#5a309a',
    950: '#000000',
  },
}
SCSS
$custom: #5a309a;
$custom-light: #8e6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a309a",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 263.774,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42302,
    "c": 0.16351,
    "h": 297
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#5A309A
secondary
#9BBB6B
accent
#DC4CA3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A309A

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

Preview Lab → · Contrast checker → · Palette generator →

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