#5E197F#5E197F

#5E197F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.0% C 0.163 H 311.7°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5E197F
RGBrgb(94, 25, 127)
HSLhsl(281, 67%, 30%)
HSVhsv(281, 80%, 50%)
CMYKcmyk(26%, 80.3%, 0%, 50.2%)
CIE-LABlab(25.59, 46.89, -42.93)
CIE-LCHlch(25.59, 63.58, 317.53°)
OKLaboklab(37.96% 0.1085 -0.1216)
OKLCHoklch(37.96% 0.163 311.7)
XYZxyz(8.7938, 4.6075, 20.5007)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E197F #3A7F19
analogous
#2B197F #5E197F #7F196D
triadic
#5E197F #7F5E19 #197F5E
tetradic
#5E197F #7F2B19 #3A7F19 #196D7F
square
#5E197F #7F2B19 #3A7F19 #196D7F
split-complementary
#5E197F #6D7F19 #197F2B
monochromatic
#13051A #380F4C #5E197F #8423B2 #A53AD8

Accessibility & contrast

On white

10.93
#5E197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E197F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E197F#FFFFFF#000000##FFFFFF
##5E197F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#043E7D
Tritanopia (blue-blind)
#5A324C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e197f;
/* rgb */ color: rgb(94, 25, 127);
/* oklch */ color: oklch(38.0% 0.163 311.7);
Tailwind
colors: {
  custom: {
    50: '#905fa5',
    500: '#5e197f',
    950: '#000000',
  },
}
SCSS
$custom: #5e197f;
$custom-light: #905fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e197f",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 280.588,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37962,
    "c": 0.16295,
    "h": 311.7
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#5E197F
secondary
#66B341
accent
#EA3E76
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E197F

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

Preview Lab → · Contrast checker → · Palette generator →

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