#5E2279#5E2279

#5E2279 is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.4% C 0.146 H 313.3°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5E2279
RGBrgb(94, 34, 121)
HSLhsl(281, 56%, 30%)
HSVhsv(281, 72%, 47%)
CMYKcmyk(22.3%, 71.9%, 0%, 52.5%)
CIE-LABlab(26.46, 41.78, -37.72)
CIE-LCHlch(26.46, 56.29, 317.93°)
OKLaboklab(38.44% 0.1002 -0.1063)
OKLCHoklch(38.44% 0.146 313.3)
XYZxyz(8.6387, 4.9045, 18.5770)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2279 #3D7922
analogous
#322279 #5E2279 #792268
triadic
#5E2279 #795E22 #22795E
tetradic
#5E2279 #793222 #3D7922 #226879
square
#5E2279 #793222 #3D7922 #226879
split-complementary
#5E2279 #687922 #227932
monochromatic
#140719 #391549 #5E2279 #832FA9 #A349CC

Accessibility & contrast

On white

10.60
#5E2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2279
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2279#FFFFFF#000000##FFFFFF
##5E22791.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#1C4077
Tritanopia (blue-blind)
#5B344B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e2279;
/* rgb */ color: rgb(94, 34, 121);
/* oklch */ color: oklch(38.4% 0.146 313.3);
Tailwind
colors: {
  custom: {
    50: '#8f63a0',
    500: '#5e2279',
    950: '#000000',
  },
}
SCSS
$custom: #5e2279;
$custom-light: #8f63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2279",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 281.379,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38441,
    "c": 0.1461,
    "h": 313.3
  },
  "luminance": 0.04904
}

Semantic roles & 50–950 ramp

primary
#5E2279
secondary
#69AC4B
accent
#DF4877
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050F
muted
#7E7A7E

Preview Lab

Preview with #5E2279

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

Preview Lab → · Contrast checker → · Palette generator →

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