#5A308E#5A308E

#5A308E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.149 H 300.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5A308E
RGBrgb(90, 48, 142)
HSLhsl(267, 49%, 37%)
HSVhsv(267, 66%, 56%)
CMYKcmyk(36.6%, 66.2%, 0%, 44.3%)
CIE-LABlab(30.01, 38.93, -45.16)
CIE-LCHlch(30.01, 59.62, 310.77°)
OKLaboklab(41.36% 0.0757 -0.1284)
OKLCHoklch(41.36% 0.149 300.5)
XYZxyz(10.1547, 6.2405, 26.2555)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A308E #648E30
analogous
#30358E #5A308E #89308E
triadic
#5A308E #8E5A30 #308E5A
tetradic
#5A308E #8E3035 #648E30 #308E89
square
#5A308E #8E3035 #648E30 #308E89
split-complementary
#5A308E #8E8930 #358E30
monochromatic
#201133 #3D2160 #5A308E #773FBC #976BCD

Accessibility & contrast

On white

9.34
#5A308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A308E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A308E#FFFFFF#000000##FFFFFF
##5A308E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#04468C
Tritanopia (blue-blind)
#4F455A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a308e;
/* rgb */ color: rgb(90, 48, 142);
/* oklch */ color: oklch(41.4% 0.149 300.5);
Tailwind
colors: {
  custom: {
    50: '#8d6bb0',
    500: '#5a308e',
    950: '#000000',
  },
}
SCSS
$custom: #5a308e;
$custom-light: #8d6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a308e",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 266.809,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41355,
    "c": 0.14907,
    "h": 300.5
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#5A308E
secondary
#91B465
accent
#D94F9B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0710
muted
#7D7A7F

Preview Lab

Preview with #5A308E

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

Preview Lab → · Contrast checker → · Palette generator →

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