#5E1274#5E1274

#5E1274 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.160 H 317.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#5E1274
RGBrgb(94, 18, 116)
HSLhsl(287, 73%, 26%)
HSVhsv(287, 84%, 45%)
CMYKcmyk(19%, 84.5%, 0%, 54.5%)
CIE-LABlab(23.91, 46.94, -38.64)
CIE-LCHlch(23.91, 60.79, 320.54°)
OKLaboklab(36.52% 0.1166 -0.1089)
OKLCHoklch(36.52% 0.16 317)
XYZxyz(7.9843, 4.0736, 16.8853)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1274 #287412
analogous
#2D1274 #5E1274 #741259
triadic
#5E1274 #745E12 #12745E
tetradic
#5E1274 #742D12 #287412 #125974
square
#5E1274 #742D12 #287412 #125974
split-complementary
#5E1274 #597412 #12742D
monochromatic
#15041A #330A3F #5E1274 #891AA9 #B323DD

Accessibility & contrast

On white

11.57
#5E1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1274
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1274#FFFFFF#000000##FFFFFF
##5E12741.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#133B72
Tritanopia (blue-blind)
#5D2944
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1274;
/* rgb */ color: rgb(94, 18, 116);
/* oklch */ color: oklch(36.5% 0.160 317.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b9d',
    500: '#5e1274',
    950: '#000000',
  },
}
SCSS
$custom: #5e1274;
$custom-light: #8f5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1274",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 286.531,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36519,
    "c": 0.15959,
    "h": 317
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#5E1274
secondary
#51AB37
accent
#F03861
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1274

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

Preview Lab → · Contrast checker → · Palette generator →

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