#5E3DCC#5E3DCC

#5E3DCC is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.7% C 0.207 H 286.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5E3DCC
RGBrgb(94, 61, 204)
HSLhsl(254, 58%, 52%)
HSVhsv(254, 70%, 80%)
CMYKcmyk(53.9%, 70.1%, 0%, 20%)
CIE-LABlab(37.98, 50.04, -69.20)
CIE-LCHlch(37.98, 85.40, 305.87°)
OKLaboklab(48.72% 0.0588 -0.199)
OKLCHoklch(48.72% 0.207 286.5)
XYZxyz(17.1807, 10.0759, 58.1546)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3DCC #ABCC3D
analogous
#3D64CC #5E3DCC #A53DCC
triadic
#5E3DCC #CC5E3D #3DCC5E
tetradic
#5E3DCC #CC3D64 #ABCC3D #3DCCA5
square
#5E3DCC #CC3D64 #ABCC3D #3DCCA5
split-complementary
#5E3DCC #CCA53D #64CC3D
monochromatic
#311E71 #462AA1 #5E3DCC #866DD9 #AE9EE5

Accessibility & contrast

On white

6.96
#5E3DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5E3DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E3DCC
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3DCC#FFFFFF#000000##FFFFFF
##5E3DCC1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#306380
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e3dcc;
/* rgb */ color: rgb(94, 61, 204);
/* oklch */ color: oklch(48.7% 0.207 286.5);
Tailwind
colors: {
  custom: {
    50: '#9675dd',
    500: '#5e3dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5e3dcc;
$custom-light: #9675dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3dcc",
  "rgb": {
    "r": 94,
    "g": 61,
    "b": 204
  },
  "hsl": {
    "h": 253.846,
    "s": 58.367,
    "l": 51.961
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.20749,
    "h": 286.5
  },
  "luminance": 0.10077
}

Semantic roles & 50–950 ramp

primary
#5E3DCC
secondary
#C3D293
accent
#E246BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E3DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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