#5E30A5#5E30A5

#5E30A5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.177 H 296.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5E30A5
RGBrgb(94, 48, 165)
HSLhsl(264, 55%, 42%)
HSVhsv(264, 71%, 65%)
CMYKcmyk(43%, 70.9%, 0%, 35.3%)
CIE-LABlab(32.28, 45.91, -55.47)
CIE-LCHlch(32.28, 72.01, 309.62°)
OKLaboklab(43.65% 0.0782 -0.1586)
OKLCHoklch(43.65% 0.177 296.3)
XYZxyz(12.4628, 7.2099, 36.3250)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E30A5 #77A530
analogous
#303CA5 #5E30A5 #9930A5
triadic
#5E30A5 #A55E30 #30A55E
tetradic
#5E30A5 #A5303C #77A530 #30A599
square
#5E30A5 #A5303C #77A530 #30A599
split-complementary
#5E30A5 #A59930 #3CA530
monochromatic
#281446 #432276 #5E30A5 #7B48CA #9D78D8

Accessibility & contrast

On white

8.60
#5E30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5E30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E30A5
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E30A5#FFFFFF#000000##FFFFFF
##5E30A51.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#4B4D67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e30a5;
/* rgb */ color: rgb(94, 48, 165);
/* oklch */ color: oklch(43.7% 0.177 296.3);
Tailwind
colors: {
  custom: {
    50: '#926cc1',
    500: '#5e30a5',
    950: '#000000',
  },
}
SCSS
$custom: #5e30a5;
$custom-light: #926cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e30a5",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 263.59,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43651,
    "c": 0.17685,
    "h": 296.3
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#5E30A5
secondary
#A1C071
accent
#DE4AA4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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