#5E277F#5E277F

#5E277F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.146 H 310.1°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5E277F
RGBrgb(94, 39, 127)
HSLhsl(278, 53%, 33%)
HSVhsv(278, 69%, 50%)
CMYKcmyk(26%, 69.3%, 0%, 50.2%)
CIE-LABlab(27.75, 40.78, -39.44)
CIE-LCHlch(27.75, 56.73, 315.95°)
OKLaboklab(39.5% 0.0937 -0.1114)
OKLCHoklch(39.5% 0.146 310.1)
XYZxyz(9.1716, 5.3632, 20.6266)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E277F #487F27
analogous
#32277F #5E277F #7F2774
triadic
#5E277F #7F5E27 #277F5E
tetradic
#5E277F #7F3227 #487F27 #27747F
square
#5E277F #7F3227 #487F27 #27747F
split-complementary
#5E277F #747F27 #277F32
monochromatic
#190A21 #3B1950 #5E277F #8135AE #9F55CB

Accessibility & contrast

On white

10.13
#5E277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E277F
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E277F#FFFFFF#000000##FFFFFF
##5E277F1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#1A427D
Tritanopia (blue-blind)
#59394F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e277f;
/* rgb */ color: rgb(94, 39, 127);
/* oklch */ color: oklch(39.5% 0.146 310.1);
Tailwind
colors: {
  custom: {
    50: '#8f65a5',
    500: '#5e277f',
    950: '#000000',
  },
}
SCSS
$custom: #5e277f;
$custom-light: #8f65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e277f",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 277.5,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39496,
    "c": 0.1456,
    "h": 310.1
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#5E277F
secondary
#75B052
accent
#DC4B82
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E277F

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

Preview Lab → · Contrast checker → · Palette generator →

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