#5E38B2#5E38B2

#5E38B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.182 H 291.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5E38B2
RGBrgb(94, 56, 178)
HSLhsl(259, 52%, 46%)
HSVhsv(259, 69%, 70%)
CMYKcmyk(47.2%, 68.5%, 0%, 30.2%)
CIE-LABlab(34.85, 45.29, -59.06)
CIE-LCHlch(34.85, 74.43, 307.48°)
OKLaboklab(45.81% 0.068 -0.1692)
OKLCHoklch(45.81% 0.182 291.9)
XYZxyz(14.0639, 8.4219, 42.9954)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38B2 #8CB238
analogous
#384FB2 #5E38B2 #9B38B2
triadic
#5E38B2 #B25E38 #38B25E
tetradic
#5E38B2 #B2384F #8CB238 #38B29B
square
#5E38B2 #B2384F #8CB238 #38B29B
split-complementary
#5E38B2 #B29B38 #4FB238
monochromatic
#2D1B55 #452983 #5E38B2 #7E5CCC #A38ADA

Accessibility & contrast

On white

7.82
#5E38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5E38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38B2
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38B2#FFFFFF#000000##FFFFFF
##5E38B21.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#445670
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e38b2;
/* rgb */ color: rgb(94, 56, 178);
/* oklch */ color: oklch(45.8% 0.182 291.9);
Tailwind
colors: {
  custom: {
    50: '#9371ca',
    500: '#5e38b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e38b2;
$custom-light: #9371ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38b2",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 258.689,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45812,
    "c": 0.18234,
    "h": 291.9
  },
  "luminance": 0.08422
}

Semantic roles & 50–950 ramp

primary
#5E38B2
secondary
#B0C581
accent
#DC4CAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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