#5A30A2#5A30A2

#5A30A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.173 H 294.9°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5A30A2
RGBrgb(90, 48, 162)
HSLhsl(262, 54%, 41%)
HSVhsv(262, 70%, 64%)
CMYKcmyk(44.4%, 70.4%, 0%, 36.5%)
CIE-LABlab(31.57, 44.35, -54.84)
CIE-LCHlch(31.57, 70.53, 308.96°)
OKLaboklab(42.96% 0.0729 -0.1569)
OKLCHoklch(42.96% 0.173 294.9)
XYZxyz(11.7932, 6.8959, 34.8851)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30A2 #78A230
analogous
#303FA2 #5A30A2 #9330A2
triadic
#5A30A2 #A25A30 #30A25A
tetradic
#5A30A2 #A2303F #78A230 #30A293
square
#5A30A2 #A2303F #78A230 #30A293
split-complementary
#5A30A2 #A29330 #3FA230
monochromatic
#261444 #402273 #5A30A2 #7747C8 #9A76D6

Accessibility & contrast

On white

8.83
#5A30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5A30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30A2
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30A2#FFFFFF#000000##FFFFFF
##5A30A21.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#464C65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a30a2;
/* rgb */ color: rgb(90, 48, 162);
/* oklch */ color: oklch(43.0% 0.173 294.9);
Tailwind
colors: {
  custom: {
    50: '#8f6cbe',
    500: '#5a30a2',
    950: '#000000',
  },
}
SCSS
$custom: #5a30a2;
$custom-light: #8f6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30a2",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 262.105,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42962,
    "c": 0.173,
    "h": 294.9
  },
  "luminance": 0.06896
}

Semantic roles & 50–950 ramp

primary
#5A30A2
secondary
#A1BE6F
accent
#DE4AA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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