#5E30A2#5E30A2

#5E30A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.173 H 297.0°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5E30A2
RGBrgb(94, 48, 162)
HSLhsl(264, 54%, 41%)
HSVhsv(264, 70%, 64%)
CMYKcmyk(42%, 70.4%, 0%, 36.5%)
CIE-LABlab(32.04, 45.11, -54.05)
CIE-LCHlch(32.04, 70.40, 309.85°)
OKLaboklab(43.4% 0.0788 -0.1544)
OKLCHoklch(43.4% 0.173 297)
XYZxyz(12.1929, 7.1020, 34.9038)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E30A2 #74A230
analogous
#303BA2 #5E30A2 #9730A2
triadic
#5E30A2 #A25E30 #30A25E
tetradic
#5E30A2 #A2303B #74A230 #30A297
square
#5E30A2 #A2303B #74A230 #30A297
split-complementary
#5E30A2 #A29730 #3BA230
monochromatic
#271444 #432273 #5E30A2 #7B47C8 #9D76D6

Accessibility & contrast

On white

8.68
#5E30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5E30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E30A2
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E30A2#FFFFFF#000000##FFFFFF
##5E30A21.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#4D4C65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e30a2;
/* rgb */ color: rgb(94, 48, 162);
/* oklch */ color: oklch(43.4% 0.173 297.0);
Tailwind
colors: {
  custom: {
    50: '#926cbe',
    500: '#5e30a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e30a2;
$custom-light: #926cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e30a2",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 264.211,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43403,
    "c": 0.17337,
    "h": 297
  },
  "luminance": 0.07102
}

Semantic roles & 50–950 ramp

primary
#5E30A2
secondary
#9FBE6F
accent
#DE4AA2
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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