#5E2180#5E2180

#5E2180 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.155 H 310.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5E2180
RGBrgb(94, 33, 128)
HSLhsl(279, 59%, 32%)
HSVhsv(279, 74%, 50%)
CMYKcmyk(26.6%, 74.2%, 0%, 49.8%)
CIE-LABlab(26.81, 43.84, -41.58)
CIE-LCHlch(26.81, 60.43, 316.52°)
OKLaboklab(38.85% 0.1004 -0.1177)
OKLCHoklch(38.85% 0.155 310.5)
XYZxyz(9.0555, 5.0261, 20.9110)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2180 #438021
analogous
#2F2180 #5E2180 #802173
triadic
#5E2180 #805E21 #21805E
tetradic
#5E2180 #802F21 #438021 #217380
square
#5E2180 #802F21 #438021 #217380
split-complementary
#5E2180 #738021 #21802F
monochromatic
#17081F #3A144F #5E2180 #822EB1 #A14BD1

Accessibility & contrast

On white

10.47
#5E2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2180
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2180#FFFFFF#000000##FFFFFF
##5E21801.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D83
Deuteranopia (green-blind)
#10407E
Tritanopia (blue-blind)
#59364E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e2180;
/* rgb */ color: rgb(94, 33, 128);
/* oklch */ color: oklch(38.9% 0.155 310.5);
Tailwind
colors: {
  custom: {
    50: '#8f62a5',
    500: '#5e2180',
    950: '#000000',
  },
}
SCSS
$custom: #5e2180;
$custom-light: #8f62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2180",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 278.526,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38851,
    "c": 0.1547,
    "h": 310.5
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#5E2180
secondary
#70B34A
accent
#E2467E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E2180

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

Preview Lab → · Contrast checker → · Palette generator →

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