#5E39B5#5E39B5

#5E39B5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.185 H 291.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5E39B5
RGBrgb(94, 57, 181)
HSLhsl(258, 52%, 47%)
HSVhsv(258, 69%, 71%)
CMYKcmyk(48.1%, 68.5%, 0%, 29%)
CIE-LABlab(35.28, 45.60, -60.13)
CIE-LCHlch(35.28, 75.46, 307.18°)
OKLaboklab(46.2% 0.0665 -0.1723)
OKLCHoklch(46.2% 0.185 291.1)
XYZxyz(14.4174, 8.6416, 44.6155)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39B5 #90B539
analogous
#3952B5 #5E39B5 #9C39B5
triadic
#5E39B5 #B55E39 #39B55E
tetradic
#5E39B5 #B53952 #90B539 #39B59C
square
#5E39B5 #B53952 #90B539 #39B59C
split-complementary
#5E39B5 #B59C39 #52B539
monochromatic
#2E1C58 #462A86 #5E39B5 #7F5FCD #A48DDB

Accessibility & contrast

On white

7.70
#5E39B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5E39B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39B5
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39B5#FFFFFF#000000##FFFFFF
##5E39B51.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#425872
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e39b5;
/* rgb */ color: rgb(94, 57, 181);
/* oklch */ color: oklch(46.2% 0.185 291.1);
Tailwind
colors: {
  custom: {
    50: '#9372cc',
    500: '#5e39b5',
    950: '#000000',
  },
}
SCSS
$custom: #5e39b5;
$custom-light: #9372cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39b5",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 257.903,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46202,
    "c": 0.18472,
    "h": 291.1
  },
  "luminance": 0.08642
}

Semantic roles & 50–950 ramp

primary
#5E39B5
secondary
#B2C684
accent
#DC4CB1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E39B5

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

Preview Lab → · Contrast checker → · Palette generator →

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