#5A309F#5A309F

#5A309F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.169 H 295.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5A309F
RGBrgb(90, 48, 159)
HSLhsl(263, 54%, 41%)
HSVhsv(263, 70%, 62%)
CMYKcmyk(43.4%, 69.8%, 0%, 37.6%)
CIE-LABlab(31.33, 43.52, -53.42)
CIE-LCHlch(31.33, 68.91, 309.17°)
OKLaboklab(42.71% 0.0735 -0.1527)
OKLCHoklch(42.71% 0.169 295.7)
XYZxyz(11.5297, 6.7905, 33.4974)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A309F #759F30
analogous
#303D9F #5A309F #91309F
triadic
#5A309F #9F5A30 #309F5A
tetradic
#5A309F #9F303D #759F30 #309F91
square
#5A309F #9F303D #759F30 #309F91
split-complementary
#5A309F #9F9130 #3D9F30
monochromatic
#251441 #3F2270 #5A309F #7645C7 #9974D5

Accessibility & contrast

On white

8.91
#5A309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5A309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A309F
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A309F#FFFFFF#000000##FFFFFF
##5A309F1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#484B64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a309f;
/* rgb */ color: rgb(90, 48, 159);
/* oklch */ color: oklch(42.7% 0.169 295.7);
Tailwind
colors: {
  custom: {
    50: '#8f6cbc',
    500: '#5a309f',
    950: '#000000',
  },
}
SCSS
$custom: #5a309f;
$custom-light: #8f6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a309f",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 262.703,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42712,
    "c": 0.16946,
    "h": 295.7
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

primary
#5A309F
secondary
#9FBD6E
accent
#DD4BA6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A309F

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

Preview Lab → · Contrast checker → · Palette generator →

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