#5E1267#5E1267

#5E1267 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.148 H 323.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#5E1267
RGBrgb(94, 18, 103)
HSLhsl(294, 70%, 24%)
HSVhsv(294, 83%, 40%)
CMYKcmyk(8.7%, 82.5%, 0%, 59.6%)
CIE-LABlab(22.97, 44.36, -31.74)
CIE-LCHlch(22.97, 54.55, 324.42°)
OKLaboklab(35.56% 0.1186 -0.0887)
OKLCHoklch(35.56% 0.148 323.2)
XYZxyz(7.2804, 3.7920, 13.1778)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1267 #1B6712
analogous
#331267 #5E1267 #671245
triadic
#5E1267 #675E12 #12675E
tetradic
#5E1267 #673312 #1B6712 #124567
square
#5E1267 #673312 #1B6712 #124567
split-complementary
#5E1267 #456712 #126733
monochromatic
#18051A #2E0933 #5E1267 #8E1B9B #BD24CF

Accessibility & contrast

On white

11.94
#5E1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5E1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1267
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1267#FFFFFF#000000##FFFFFF
##5E12671.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#213A65
Tritanopia (blue-blind)
#60233D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e1267;
/* rgb */ color: rgb(94, 18, 103);
/* oklch */ color: oklch(35.6% 0.148 323.2);
Tailwind
colors: {
  custom: {
    50: '#8f5b93',
    500: '#5e1267',
    950: '#000000',
  },
}
SCSS
$custom: #5e1267;
$custom-light: #8f5b93;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1267",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 293.647,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35556,
    "c": 0.14808,
    "h": 323.2
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#5E1267
secondary
#419F36
accent
#ED3B4E
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1267

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

Preview Lab → · Contrast checker → · Palette generator →

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