#5E4BA2#5E4BA2

#5E4BA2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.7% C 0.135 H 290.4°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5E4BA2
RGBrgb(94, 75, 162)
HSLhsl(253, 37%, 46%)
HSVhsv(253, 54%, 64%)
CMYKcmyk(42%, 53.7%, 0%, 36.5%)
CIE-LABlab(37.88, 29.62, -44.62)
CIE-LCHlch(37.88, 53.55, 303.58°)
OKLaboklab(47.66% 0.0471 -0.1267)
OKLCHoklch(47.66% 0.135 290.4)
XYZxyz(13.6520, 10.0200, 35.3902)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4BA2 #8FA24B
analogous
#4B64A2 #5E4BA2 #8A4BA2
triadic
#5E4BA2 #A25E4B #4BA25E
tetradic
#5E4BA2 #A24B64 #8FA24B #4BA28A
square
#5E4BA2 #A24B64 #8FA24B #4BA28A
split-complementary
#5E4BA2 #A28A4B #64A24B
monochromatic
#2D244E #463878 #5E4BA2 #7F6EBC #A498CF

Accessibility & contrast

On white

6.99
#5E4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5E4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4BA2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4BA2#FFFFFF#000000##FFFFFF
##5E4BA21.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#2657A0
Tritanopia (blue-blind)
#4B5D6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e4ba2;
/* rgb */ color: rgb(94, 75, 162);
/* oklch */ color: oklch(47.7% 0.135 290.4);
Tailwind
colors: {
  custom: {
    50: '#907ebe',
    500: '#5e4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #5e4ba2;
$custom-light: #907ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4ba2",
  "rgb": {
    "r": 94,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 253.103,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47662,
    "c": 0.13517,
    "h": 290.4
  },
  "luminance": 0.1002
}

Semantic roles & 50–950 ramp

primary
#5E4BA2
secondary
#B2BC8D
accent
#CD5BB4
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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