#5E28A3#5E28A3

#5E28A3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.184 H 298.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5E28A3
RGBrgb(94, 40, 163)
HSLhsl(266, 61%, 40%)
HSVhsv(266, 75%, 64%)
CMYKcmyk(42.3%, 75.5%, 0%, 36.1%)
CIE-LABlab(30.74, 49.26, -56.78)
CIE-LCHlch(30.74, 75.17, 310.94°)
OKLaboklab(42.51% 0.0863 -0.1624)
OKLCHoklch(42.51% 0.184 298)
XYZxyz(11.9840, 6.5414, 35.2745)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28A3 #6DA328
analogous
#2830A3 #5E28A3 #9B28A3
triadic
#5E28A3 #A35E28 #28A35E
tetradic
#5E28A3 #A32830 #6DA328 #28A39B
square
#5E28A3 #A32830 #6DA328 #28A39B
split-complementary
#5E28A3 #A39B28 #30A328
monochromatic
#251041 #421C72 #5E28A3 #7B3ACF #9C6BDB

Accessibility & contrast

On white

9.10
#5E28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E28A3
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28A3#FFFFFF#000000##FFFFFF
##5E28A31.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#4D4864
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e28a3;
/* rgb */ color: rgb(94, 40, 163);
/* oklch */ color: oklch(42.5% 0.184 298.0);
Tailwind
colors: {
  custom: {
    50: '#9268bf',
    500: '#5e28a3',
    950: '#000000',
  },
}
SCSS
$custom: #5e28a3;
$custom-light: #9268bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28a3",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 266.341,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.18391,
    "h": 298
  },
  "luminance": 0.06542
}

Semantic roles & 50–950 ramp

primary
#5E28A3
secondary
#99C166
accent
#E4449E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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