#5E277C#5E277C

#5E277C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.142 H 311.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#5E277C
RGBrgb(94, 39, 124)
HSLhsl(279, 52%, 32%)
HSVhsv(279, 69%, 49%)
CMYKcmyk(24.2%, 68.5%, 0%, 51.4%)
CIE-LABlab(27.54, 40.07, -37.89)
CIE-LCHlch(27.54, 55.15, 316.60°)
OKLaboklab(39.28% 0.0939 -0.1069)
OKLCHoklch(39.28% 0.142 311.3)
XYZxyz(8.9790, 5.2862, 19.6122)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E277C #457C27
analogous
#34277C #5E277C #7C276F
triadic
#5E277C #7C5E27 #277C5E
tetradic
#5E277C #7C3427 #457C27 #276F7C
square
#5E277C #7C3427 #457C27 #276F7C
split-complementary
#5E277C #6F7C27 #277C34
monochromatic
#170A1F #3B184D #5E277C #8136AB #A054C9

Accessibility & contrast

On white

10.21
#5E277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E277C
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E277C#FFFFFF#000000##FFFFFF
##5E277C1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#1D427A
Tritanopia (blue-blind)
#5A384E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e277c;
/* rgb */ color: rgb(94, 39, 124);
/* oklch */ color: oklch(39.3% 0.142 311.3);
Tailwind
colors: {
  custom: {
    50: '#8f65a2',
    500: '#5e277c',
    950: '#000000',
  },
}
SCSS
$custom: #5e277c;
$custom-light: #8f65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e277c",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 278.824,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39278,
    "c": 0.1423,
    "h": 311.3
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#5E277C
secondary
#72AE51
accent
#DC4C7F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E277C

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

Preview Lab → · Contrast checker → · Palette generator →

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