#5E277E#5E277E

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

Color values

HEX#5E277E
RGBrgb(94, 39, 126)
HSLhsl(278, 53%, 32%)
HSVhsv(278, 69%, 49%)
CMYKcmyk(25.4%, 69%, 0%, 50.6%)
CIE-LABlab(27.67, 40.54, -38.93)
CIE-LCHlch(27.67, 56.20, 316.16°)
OKLaboklab(39.42% 0.0938 -0.1099)
OKLCHoklch(39.42% 0.145 310.5)
XYZxyz(9.1068, 5.3373, 20.2851)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E277E #477E27
analogous
#33277E #5E277E #7E2773
triadic
#5E277E #7E5E27 #277E5E
tetradic
#5E277E #7E3327 #477E27 #27737E
square
#5E277E #7E3327 #477E27 #27737E
split-complementary
#5E277E #737E27 #277E33
monochromatic
#180A21 #3B194F #5E277E #8135AD #9F55CA

Accessibility & contrast

On white

10.16
#5E277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5E277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E277E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E277E#FFFFFF#000000##FFFFFF
##5E277E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#1B427C
Tritanopia (blue-blind)
#5A394F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e277e;
/* rgb */ color: rgb(94, 39, 126);
/* oklch */ color: oklch(39.4% 0.144 310.5);
Tailwind
colors: {
  custom: {
    50: '#8f65a4',
    500: '#5e277e',
    950: '#000000',
  },
}
SCSS
$custom: #5e277e;
$custom-light: #8f65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e277e",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 277.931,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39423,
    "c": 0.1445,
    "h": 310.5
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#5E277E
secondary
#74AF52
accent
#DC4C81
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E277E

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

Preview Lab → · Contrast checker → · Palette generator →

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