#5E279F#5E279F

#5E279F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.181 H 299.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5E279F
RGBrgb(94, 39, 159)
HSLhsl(268, 61%, 39%)
HSVhsv(268, 75%, 62%)
CMYKcmyk(40.9%, 75.5%, 0%, 37.6%)
CIE-LABlab(30.24, 48.69, -55.17)
CIE-LCHlch(30.24, 73.58, 311.43°)
OKLaboklab(42.05% 0.0882 -0.1577)
OKLCHoklch(42.05% 0.181 299.2)
XYZxyz(11.5980, 6.3338, 33.4057)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E279F #689F27
analogous
#272C9F #5E279F #9A279F
triadic
#5E279F #9F5E27 #279F5E
tetradic
#5E279F #9F272C #689F27 #279F9A
square
#5E279F #9F272C #689F27 #279F9A
split-complementary
#5E279F #9F9A27 #2C9F27
monochromatic
#240F3D #411B6E #5E279F #7B36CE #9B67DA

Accessibility & contrast

On white

9.26
#5E279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E279F
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E279F#FFFFFF#000000##FFFFFF
##5E279F1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#4E4661
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e279f;
/* rgb */ color: rgb(94, 39, 159);
/* oklch */ color: oklch(42.1% 0.181 299.2);
Tailwind
colors: {
  custom: {
    50: '#9267bc',
    500: '#5e279f',
    950: '#000000',
  },
}
SCSS
$custom: #5e279f;
$custom-light: #9267bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e279f",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 267.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42052,
    "c": 0.18065,
    "h": 299.2
  },
  "luminance": 0.06334
}

Semantic roles & 50–950 ramp

primary
#5E279F
secondary
#95C062
accent
#E4449B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E279F

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

Preview Lab → · Contrast checker → · Palette generator →

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