#5E38AF#5E38AF

#5E38AF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.179 H 292.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5E38AF
RGBrgb(94, 56, 175)
HSLhsl(259, 52%, 45%)
HSVhsv(259, 68%, 69%)
CMYKcmyk(46.3%, 68%, 0%, 31.4%)
CIE-LABlab(34.61, 44.45, -57.67)
CIE-LCHlch(34.61, 72.81, 307.62°)
OKLaboklab(45.57% 0.0685 -0.1651)
OKLCHoklch(45.57% 0.179 292.5)
XYZxyz(13.7660, 8.3027, 41.4264)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38AF #89AF38
analogous
#384DAF #5E38AF #9A38AF
triadic
#5E38AF #AF5E38 #38AF5E
tetradic
#5E38AF #AF384D #89AF38 #38AF9A
square
#5E38AF #AF384D #89AF38 #38AF9A
split-complementary
#5E38AF #AF9A38 #4DAF38
monochromatic
#2C1A52 #452981 #5E38AF #7E5ACA #A288D9

Accessibility & contrast

On white

7.89
#5E38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5E38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38AF
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38AF#FFFFFF#000000##FFFFFF
##5E38AF1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#46556F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e38af;
/* rgb */ color: rgb(94, 56, 175);
/* oklch */ color: oklch(45.6% 0.179 292.5);
Tailwind
colors: {
  custom: {
    50: '#9371c8',
    500: '#5e38af',
    950: '#000000',
  },
}
SCSS
$custom: #5e38af;
$custom-light: #9371c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38af",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 259.16,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45565,
    "c": 0.17873,
    "h": 292.5
  },
  "luminance": 0.08303
}

Semantic roles & 50–950 ramp

primary
#5E38AF
secondary
#AEC380
accent
#DB4DAE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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