#5E277A#5E277A

#5E277A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.140 H 312.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5E277A
RGBrgb(94, 39, 122)
HSLhsl(280, 52%, 32%)
HSVhsv(280, 68%, 48%)
CMYKcmyk(23%, 68%, 0%, 52.2%)
CIE-LABlab(27.40, 39.60, -36.85)
CIE-LCHlch(27.40, 54.09, 317.06°)
OKLaboklab(39.13% 0.0941 -0.1038)
OKLCHoklch(39.13% 0.14 312.2)
XYZxyz(8.8538, 5.2361, 18.9528)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E277A #437A27
analogous
#35277A #5E277A #7A276D
triadic
#5E277A #7A5E27 #277A5E
tetradic
#5E277A #7A3527 #437A27 #276D7A
square
#5E277A #7A3527 #437A27 #276D7A
split-complementary
#5E277A #6D7A27 #277A35
monochromatic
#17091D #3A184C #5E277A #8236A8 #A153C8

Accessibility & contrast

On white

10.26
#5E277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5E277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E277A
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E277A#FFFFFF#000000##FFFFFF
##5E277A1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#204278
Tritanopia (blue-blind)
#5B374D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e277a;
/* rgb */ color: rgb(94, 39, 122);
/* oklch */ color: oklch(39.1% 0.140 312.2);
Tailwind
colors: {
  custom: {
    50: '#8f65a1',
    500: '#5e277a',
    950: '#000000',
  },
}
SCSS
$custom: #5e277a;
$custom-light: #8f65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e277a",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 279.759,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39134,
    "c": 0.14011,
    "h": 312.2
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#5E277A
secondary
#70AC51
accent
#DB4D7D
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060F
muted
#7E7A7E

Preview Lab

Preview with #5E277A

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

Preview Lab → · Contrast checker → · Palette generator →

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