#5E279B#5E279B

#5E279B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.176 H 300.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5E279B
RGBrgb(94, 39, 155)
HSLhsl(268, 60%, 38%)
HSVhsv(268, 75%, 61%)
CMYKcmyk(39.4%, 74.8%, 0%, 39.2%)
CIE-LABlab(29.90, 47.68, -53.28)
CIE-LCHlch(29.90, 71.50, 311.82°)
OKLaboklab(41.71% 0.0891 -0.1521)
OKLCHoklch(41.71% 0.176 300.4)
XYZxyz(11.2565, 6.1972, 31.6071)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E279B #649B27
analogous
#272A9B #5E279B #98279B
triadic
#5E279B #9B5E27 #279B5E
tetradic
#5E279B #9B272A #649B27 #279B98
square
#5E279B #9B272A #649B27 #279B98
split-complementary
#5E279B #9B9827 #2A9B27
monochromatic
#230E39 #401B6A #5E279B #7C33CC #9B64D8

Accessibility & contrast

On white

9.38
#5E279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E279B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E279B#FFFFFF#000000##FFFFFF
##5E279B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#50445F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e279b;
/* rgb */ color: rgb(94, 39, 155);
/* oklch */ color: oklch(41.7% 0.176 300.4);
Tailwind
colors: {
  custom: {
    50: '#9167b9',
    500: '#5e279b',
    950: '#000000',
  },
}
SCSS
$custom: #5e279b;
$custom-light: #9167b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e279b",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 268.448,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41712,
    "c": 0.1763,
    "h": 300.4
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#5E279B
secondary
#91BE60
accent
#E34598
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5E279B

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

Preview Lab → · Contrast checker → · Palette generator →

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