#5E1275#5E1275

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

Color values

HEX#5E1275
RGBrgb(94, 18, 117)
HSLhsl(286, 73%, 26%)
HSVhsv(286, 85%, 46%)
CMYKcmyk(19.7%, 84.6%, 0%, 54.1%)
CIE-LABlab(23.99, 47.14, -39.15)
CIE-LCHlch(23.99, 61.28, 320.29°)
OKLaboklab(36.6% 0.1164 -0.1104)
OKLCHoklch(36.6% 0.16 316.5)
XYZxyz(8.0428, 4.0970, 17.1933)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1275 #297512
analogous
#2D1275 #5E1275 #75125B
triadic
#5E1275 #755E12 #12755E
tetradic
#5E1275 #752D12 #297512 #125B75
square
#5E1275 #752D12 #297512 #125B75
split-complementary
#5E1275 #5B7512 #12752D
monochromatic
#15041B #330A40 #5E1275 #891AAA #B224DD

Accessibility & contrast

On white

11.54
#5E1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5E1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1275
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1275#FFFFFF#000000##FFFFFF
##5E12751.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#113B73
Tritanopia (blue-blind)
#5D2A45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1275;
/* rgb */ color: rgb(94, 18, 117);
/* oklch */ color: oklch(36.6% 0.160 316.5);
Tailwind
colors: {
  custom: {
    50: '#8f5b9d',
    500: '#5e1275',
    950: '#000000',
  },
}
SCSS
$custom: #5e1275;
$custom-light: #8f5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1275",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 286.061,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36597,
    "c": 0.16048,
    "h": 316.5
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#5E1275
secondary
#52AC37
accent
#F03863
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1275

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

Preview Lab → · Contrast checker → · Palette generator →

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