#5E38CD#5E38CD

#5E38CD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.214 H 287.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5E38CD
RGBrgb(94, 56, 205)
HSLhsl(255, 60%, 51%)
HSVhsv(255, 73%, 80%)
CMYKcmyk(54.1%, 72.7%, 0%, 19.6%)
CIE-LABlab(37.14, 52.91, -71.15)
CIE-LCHlch(37.14, 88.67, 306.63°)
OKLaboklab(48.15% 0.0627 -0.2047)
OKLCHoklch(48.15% 0.214 287)
XYZxyz(17.0464, 9.6149, 58.7034)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38CD #A7CD38
analogous
#385CCD #5E38CD #A838CD
triadic
#5E38CD #CD5E38 #38CD5E
tetradic
#5E38CD #CD385C #A7CD38 #38CDA8
square
#5E38CD #CD385C #A7CD38 #38CDA8
split-complementary
#5E38CD #CDA838 #5CCD38
monochromatic
#311C6F #4728A0 #5E38CD #8669D9 #AD9AE6

Accessibility & contrast

On white

7.18
#5E38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5E38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38CD
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38CD#FFFFFF#000000##FFFFFF
##5E38CD1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#2F607F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e38cd;
/* rgb */ color: rgb(94, 56, 205);
/* oklch */ color: oklch(48.2% 0.214 287.0);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5e38cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e38cd;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38cd",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 255.302,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48154,
    "c": 0.21405,
    "h": 287
  },
  "luminance": 0.09616
}

Semantic roles & 50–950 ramp

primary
#5E38CD
secondary
#C1D18F
accent
#E345BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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