#5E2295#5E2295

#5E2295 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.175 H 302.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5E2295
RGBrgb(94, 34, 149)
HSLhsl(271, 63%, 36%)
HSVhsv(271, 77%, 58%)
CMYKcmyk(36.9%, 77.2%, 0%, 41.6%)
CIE-LABlab(28.63, 48.41, -51.69)
CIE-LCHlch(28.63, 70.82, 313.12°)
OKLaboklab(40.66% 0.0952 -0.1474)
OKLCHoklch(40.66% 0.175 302.9)
XYZxyz(10.6117, 5.6937, 28.9679)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2295 #599522
analogous
#242295 #5E2295 #952292
triadic
#5E2295 #955E22 #22955E
tetradic
#5E2295 #952422 #599522 #229295
square
#5E2295 #952422 #599522 #229295
split-complementary
#5E2295 #929522 #229524
monochromatic
#1F0B31 #3F1763 #5E2295 #7D2DC7 #9B58D9

Accessibility & contrast

On white

9.82
#5E2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2295
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2295#FFFFFF#000000##FFFFFF
##5E22951.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#533F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2295;
/* rgb */ color: rgb(94, 34, 149);
/* oklch */ color: oklch(40.7% 0.175 302.9);
Tailwind
colors: {
  custom: {
    50: '#9164b5',
    500: '#5e2295',
    950: '#000000',
  },
}
SCSS
$custom: #5e2295;
$custom-light: #9164b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2295",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 271.304,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.17548,
    "h": 302.9
  },
  "luminance": 0.05694
}

Semantic roles & 50–950 ramp

primary
#5E2295
secondary
#87BD56
accent
#E64290
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2295

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

Preview Lab → · Contrast checker → · Palette generator →

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