#5E1E7F#5E1E7F

#5E1E7F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.157 H 311.2°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5E1E7F
RGBrgb(94, 30, 127)
HSLhsl(280, 62%, 31%)
HSVhsv(280, 76%, 50%)
CMYKcmyk(26%, 76.4%, 0%, 50.2%)
CIE-LABlab(26.28, 44.91, -41.81)
CIE-LCHlch(26.28, 61.36, 317.05°)
OKLaboklab(38.45% 0.1037 -0.1183)
OKLCHoklch(38.45% 0.157 311.2)
XYZxyz(8.9104, 4.8408, 20.5395)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E7F #3F7F1E
analogous
#2E1E7F #5E1E7F #7F1E6F
triadic
#5E1E7F #7F5E1E #1E7F5E
tetradic
#5E1E7F #7F2E1E #3F7F1E #1E6F7F
square
#5E1E7F #7F2E1E #3F7F1E #1E6F7F
split-complementary
#5E1E7F #6F7F1E #1E7F2E
monochromatic
#15071C #39124D #5E1E7F #832AB1 #A244D3

Accessibility & contrast

On white

10.67
#5E1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E7F
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E7F#FFFFFF#000000##FFFFFF
##5E1E7F1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#0D3F7D
Tritanopia (blue-blind)
#5A344D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1e7f;
/* rgb */ color: rgb(94, 30, 127);
/* oklch */ color: oklch(38.4% 0.157 311.2);
Tailwind
colors: {
  custom: {
    50: '#8f61a5',
    500: '#5e1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e7f;
$custom-light: #8f61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e7f",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 279.588,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38449,
    "c": 0.15735,
    "h": 311.2
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#5E1E7F
secondary
#6BB247
accent
#E5437A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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