#5E277D#5E277D

#5E277D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.143 H 310.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#5E277D
RGBrgb(94, 39, 125)
HSLhsl(278, 52%, 32%)
HSVhsv(278, 69%, 49%)
CMYKcmyk(24.8%, 68.8%, 0%, 51%)
CIE-LABlab(27.60, 40.30, -38.41)
CIE-LCHlch(27.60, 55.67, 316.38°)
OKLaboklab(39.35% 0.0939 -0.1084)
OKLCHoklch(39.35% 0.143 310.9)
XYZxyz(9.0426, 5.3116, 19.9469)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E277D #467D27
analogous
#33277D #5E277D #7D2771
triadic
#5E277D #7D5E27 #277D5E
tetradic
#5E277D #7D3327 #467D27 #27717D
square
#5E277D #7D3327 #467D27 #27717D
split-complementary
#5E277D #717D27 #277D33
monochromatic
#180A20 #3B184E #5E277D #8136AC #A055CA

Accessibility & contrast

On white

10.18
#5E277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5E277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E277D
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E277D#FFFFFF#000000##FFFFFF
##5E277D1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#1C427B
Tritanopia (blue-blind)
#5A394E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e277d;
/* rgb */ color: rgb(94, 39, 125);
/* oklch */ color: oklch(39.4% 0.143 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f65a3',
    500: '#5e277d',
    950: '#000000',
  },
}
SCSS
$custom: #5e277d;
$custom-light: #8f65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e277d",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 278.372,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3935,
    "c": 0.1434,
    "h": 310.9
  },
  "luminance": 0.05311
}

Semantic roles & 50–950 ramp

primary
#5E277D
secondary
#73AF51
accent
#DC4C80
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E277D

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

Preview Lab → · Contrast checker → · Palette generator →

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