#5E28A2#5E28A2

#5E28A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.183 H 298.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5E28A2
RGBrgb(94, 40, 162)
HSLhsl(267, 60%, 40%)
HSVhsv(267, 75%, 64%)
CMYKcmyk(42%, 75.3%, 0%, 36.5%)
CIE-LABlab(30.65, 49.00, -56.31)
CIE-LCHlch(30.65, 74.65, 311.03°)
OKLaboklab(42.42% 0.0866 -0.161)
OKLCHoklch(42.42% 0.183 298.3)
XYZxyz(11.8948, 6.5057, 34.8045)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E28A2 #6CA228
analogous
#282FA2 #5E28A2 #9B28A2
triadic
#5E28A2 #A25E28 #28A25E
tetradic
#5E28A2 #A2282F #6CA228 #28A29B
square
#5E28A2 #A2282F #6CA228 #28A29B
split-complementary
#5E28A2 #A29B28 #2FA228
monochromatic
#251040 #421C71 #5E28A2 #7B39CE #9C6ADA

Accessibility & contrast

On white

9.13
#5E28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5E28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E28A2
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E28A2#FFFFFF#000000##FFFFFF
##5E28A21.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#4D4863
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e28a2;
/* rgb */ color: rgb(94, 40, 162);
/* oklch */ color: oklch(42.4% 0.183 298.3);
Tailwind
colors: {
  custom: {
    50: '#9268be',
    500: '#5e28a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e28a2;
$custom-light: #9268be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e28a2",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 266.557,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42423,
    "c": 0.18281,
    "h": 298.3
  },
  "luminance": 0.06506
}

Semantic roles & 50–950 ramp

primary
#5E28A2
secondary
#98C165
accent
#E4449D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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