#5E38AB#5E38AB

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

Color values

HEX#5E38AB
RGBrgb(94, 56, 171)
HSLhsl(260, 51%, 45%)
HSVhsv(260, 67%, 67%)
CMYKcmyk(45%, 67.3%, 0%, 32.9%)
CIE-LABlab(34.29, 43.33, -55.80)
CIE-LCHlch(34.29, 70.65, 307.83°)
OKLaboklab(45.24% 0.069 -0.1596)
OKLCHoklch(45.24% 0.174 293.4)
XYZxyz(13.3789, 8.1479, 39.3880)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38AB #85AB38
analogous
#384CAB #5E38AB #9838AB
triadic
#5E38AB #AB5E38 #38AB5E
tetradic
#5E38AB #AB384C #85AB38 #38AB98
square
#5E38AB #AB384C #85AB38 #38AB98
split-complementary
#5E38AB #AB9838 #4CAB38
monochromatic
#2B1A4F #45297D #5E38AB #7D58C8 #A186D7

Accessibility & contrast

On white

7.99
#5E38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5E38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38AB
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38AB#FFFFFF#000000##FFFFFF
##5E38AB1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#48546D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e38ab;
/* rgb */ color: rgb(94, 56, 171);
/* oklch */ color: oklch(45.2% 0.174 293.4);
Tailwind
colors: {
  custom: {
    50: '#9271c5',
    500: '#5e38ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e38ab;
$custom-light: #9271c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38ab",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 259.826,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45238,
    "c": 0.17389,
    "h": 293.4
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

primary
#5E38AB
secondary
#ABC17D
accent
#DA4EAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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