#5E38AA#5E38AA

#5E38AA is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.173 H 293.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5E38AA
RGBrgb(94, 56, 170)
HSLhsl(260, 50%, 44%)
HSVhsv(260, 67%, 67%)
CMYKcmyk(44.7%, 67.1%, 0%, 33.3%)
CIE-LABlab(34.21, 43.05, -55.33)
CIE-LCHlch(34.21, 70.11, 307.89°)
OKLaboklab(45.16% 0.0692 -0.1582)
OKLCHoklch(45.16% 0.173 293.6)
XYZxyz(13.2840, 8.1099, 38.8879)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38AA #84AA38
analogous
#384BAA #5E38AA #9738AA
triadic
#5E38AA #AA5E38 #38AA5E
tetradic
#5E38AA #AA384B #84AA38 #38AA97
square
#5E38AA #AA384B #84AA38 #38AA97
split-complementary
#5E38AA #AA9738 #4BAA38
monochromatic
#2B1A4E #45297C #5E38AA #7D57C8 #A185D7

Accessibility & contrast

On white

8.01
#5E38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5E38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38AA
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38AA#FFFFFF#000000##FFFFFF
##5E38AA1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#48536C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e38aa;
/* rgb */ color: rgb(94, 56, 170);
/* oklch */ color: oklch(45.2% 0.173 293.6);
Tailwind
colors: {
  custom: {
    50: '#9271c4',
    500: '#5e38aa',
    950: '#000000',
  },
}
SCSS
$custom: #5e38aa;
$custom-light: #9271c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38aa",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 260,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45158,
    "c": 0.17267,
    "h": 293.6
  },
  "luminance": 0.0811
}

Semantic roles & 50–950 ramp

primary
#5E38AA
secondary
#AAC17D
accent
#DA4EAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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