#5E2299#5E2299

#5E2299 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.180 H 301.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5E2299
RGBrgb(94, 34, 153)
HSLhsl(270, 64%, 37%)
HSVhsv(270, 78%, 60%)
CMYKcmyk(38.6%, 77.8%, 0%, 40%)
CIE-LABlab(28.96, 49.39, -53.59)
CIE-LCHlch(28.96, 72.88, 312.66°)
OKLaboklab(41% 0.0942 -0.153)
OKLCHoklch(41% 0.18 301.6)
XYZxyz(10.9365, 5.8236, 30.6787)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2299 #5D9922
analogous
#232299 #5E2299 #992299
triadic
#5E2299 #995E22 #22995E
tetradic
#5E2299 #992322 #5D9922 #229999
square
#5E2299 #992322 #5D9922 #229999
split-complementary
#5E2299 #999922 #229923
monochromatic
#200C35 #3F1767 #5E2299 #7D2DCB #9B5BDB

Accessibility & contrast

On white

9.70
#5E2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2299
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2299#FFFFFF#000000##FFFFFF
##5E22991.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#51415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2299;
/* rgb */ color: rgb(94, 34, 153);
/* oklch */ color: oklch(41.0% 0.180 301.6);
Tailwind
colors: {
  custom: {
    50: '#9164b8',
    500: '#5e2299',
    950: '#000000',
  },
}
SCSS
$custom: #5e2299;
$custom-light: #9164b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2299",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 270.252,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40997,
    "c": 0.17968,
    "h": 301.6
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#5E2299
secondary
#8BBF58
accent
#E74193
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2299

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

Preview Lab → · Contrast checker → · Palette generator →

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