#5A30B2#5A30B2

#5A30B2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.192 H 291.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5A30B2
RGBrgb(90, 48, 178)
HSLhsl(259, 58%, 44%)
HSVhsv(259, 73%, 70%)
CMYKcmyk(49.4%, 73%, 0%, 30.2%)
CIE-LABlab(32.92, 48.76, -62.22)
CIE-LCHlch(32.92, 79.05, 308.08°)
OKLaboklab(44.34% 0.0697 -0.1786)
OKLCHoklch(44.34% 0.192 291.3)
XYZxyz(13.3070, 7.5014, 42.8576)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30B2 #88B230
analogous
#3047B2 #5A30B2 #9B30B2
triadic
#5A30B2 #B25A30 #30B25A
tetradic
#5A30B2 #B23047 #88B230 #30B29B
square
#5A30B2 #B23047 #88B230 #30B29B
split-complementary
#5A30B2 #B29B30 #47B230
monochromatic
#291652 #422382 #5A30B2 #7950D0 #9E80DD

Accessibility & contrast

On white

8.40
#5A30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5A30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30B2
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30B2#FFFFFF#000000##FFFFFF
##5A30B21.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#3D526E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a30b2;
/* rgb */ color: rgb(90, 48, 178);
/* oklch */ color: oklch(44.3% 0.192 291.3);
Tailwind
colors: {
  custom: {
    50: '#916cca',
    500: '#5a30b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a30b2;
$custom-light: #916cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30b2",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 259.385,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44342,
    "c": 0.19168,
    "h": 291.3
  },
  "luminance": 0.07502
}

Semantic roles & 50–950 ramp

primary
#5A30B2
secondary
#ADC678
accent
#E147AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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