#5A308B#5A308B

#5A308B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.1% C 0.145 H 301.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5A308B
RGBrgb(90, 48, 139)
HSLhsl(268, 49%, 37%)
HSVhsv(268, 65%, 55%)
CMYKcmyk(35.3%, 65.5%, 0%, 45.5%)
CIE-LABlab(29.79, 38.13, -43.66)
CIE-LCHlch(29.79, 57.96, 311.14°)
OKLaboklab(41.13% 0.076 -0.124)
OKLCHoklch(41.13% 0.145 301.5)
XYZxyz(9.9325, 6.1516, 25.0852)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A308B #618B30
analogous
#30348B #5A308B #88308B
triadic
#5A308B #8B5A30 #308B5A
tetradic
#5A308B #8B3034 #618B30 #308B88
square
#5A308B #8B3034 #618B30 #308B88
split-complementary
#5A308B #8B8830 #348B30
monochromatic
#1F1130 #3D205E #5A308B #7740B8 #976ACC

Accessibility & contrast

On white

9.42
#5A308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A308B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A308B#FFFFFF#000000##FFFFFF
##5A308B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#0D4689
Tritanopia (blue-blind)
#504459
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a308b;
/* rgb */ color: rgb(90, 48, 139);
/* oklch */ color: oklch(41.1% 0.145 301.5);
Tailwind
colors: {
  custom: {
    50: '#8d6bad',
    500: '#5a308b',
    950: '#000000',
  },
}
SCSS
$custom: #5a308b;
$custom-light: #8d6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a308b",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 267.692,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41127,
    "c": 0.14544,
    "h": 301.5
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#5A308B
secondary
#8EB364
accent
#D85099
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #5A308B

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

Preview Lab → · Contrast checker → · Palette generator →

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