#5E276F#5E276F

#5E276F is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.4% C 0.128 H 317.4°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5E276F
RGBrgb(94, 39, 111)
HSLhsl(286, 48%, 29%)
HSVhsv(286, 65%, 44%)
CMYKcmyk(15.3%, 64.9%, 0%, 56.5%)
CIE-LABlab(26.67, 37.09, -31.00)
CIE-LCHlch(26.67, 48.34, 320.11°)
OKLaboklab(38.38% 0.0944 -0.0867)
OKLCHoklch(38.38% 0.128 317.4)
XYZxyz(8.2104, 4.9787, 15.5643)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E276F #386F27
analogous
#3A276F #5E276F #6F275C
triadic
#5E276F #6F5E27 #276F5E
tetradic
#5E276F #6F3A27 #386F27 #275C6F
square
#5E276F #6F3A27 #386F27 #275C6F
split-complementary
#5E276F #5C6F27 #276F3A
monochromatic
#130817 #381742 #5E276F #84379C #A64FC1

Accessibility & contrast

On white

10.52
#5E276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E276F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E276F#FFFFFF#000000##FFFFFF
##5E276F1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C71
Deuteranopia (green-blind)
#29416D
Tritanopia (blue-blind)
#5D3347
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e276f;
/* rgb */ color: rgb(94, 39, 111);
/* oklch */ color: oklch(38.4% 0.128 317.4);
Tailwind
colors: {
  custom: {
    50: '#8e6599',
    500: '#5e276f',
    950: '#000000',
  },
}
SCSS
$custom: #5e276f;
$custom-light: #8e6599;
$custom-dark: #000000;
JSON
{
  "hex": "#5e276f",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 285.833,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3838,
    "c": 0.12815,
    "h": 317.4
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#5E276F
secondary
#63A250
accent
#D85070
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5E276F

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

Preview Lab → · Contrast checker → · Palette generator →

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