#5E2183#5E2183

#5E2183 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.158 H 309.3°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#5E2183
RGBrgb(94, 33, 131)
HSLhsl(277, 60%, 32%)
HSVhsv(277, 75%, 51%)
CMYKcmyk(28.2%, 74.8%, 0%, 48.6%)
CIE-LABlab(27.04, 44.54, -43.10)
CIE-LCHlch(27.04, 61.98, 315.94°)
OKLaboklab(39.08% 0.0999 -0.1221)
OKLCHoklch(39.08% 0.158 309.3)
XYZxyz(9.2559, 5.1063, 21.9663)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2183 #468321
analogous
#2D2183 #5E2183 #832177
triadic
#5E2183 #835E21 #21835E
tetradic
#5E2183 #832D21 #468321 #217783
square
#5E2183 #832D21 #468321 #217783
split-complementary
#5E2183 #778321 #21832D
monochromatic
#180821 #3B1552 #5E2183 #812DB4 #A04CD2

Accessibility & contrast

On white

10.39
#5E2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2183
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2183#FFFFFF#000000##FFFFFF
##5E21831.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#084181
Tritanopia (blue-blind)
#593850
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e2183;
/* rgb */ color: rgb(94, 33, 131);
/* oklch */ color: oklch(39.1% 0.158 309.3);
Tailwind
colors: {
  custom: {
    50: '#9062a8',
    500: '#5e2183',
    950: '#000000',
  },
}
SCSS
$custom: #5e2183;
$custom-light: #9062a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2183",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 277.347,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.15782,
    "h": 309.3
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#5E2183
secondary
#73B54B
accent
#E34581
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E2183

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

Preview Lab → · Contrast checker → · Palette generator →

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