#5E3ECC#5E3ECC

#5E3ECC is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.206 H 286.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5E3ECC
RGBrgb(94, 62, 204)
HSLhsl(254, 58%, 52%)
HSVhsv(254, 70%, 80%)
CMYKcmyk(53.9%, 69.6%, 0%, 20%)
CIE-LABlab(38.17, 49.51, -68.89)
CIE-LCHlch(38.17, 84.84, 305.70°)
OKLaboklab(48.86% 0.058 -0.198)
OKLCHoklch(48.86% 0.206 286.3)
XYZxyz(17.2345, 10.1836, 58.1725)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3ECC #ACCC3E
analogous
#3E65CC #5E3ECC #A53ECC
triadic
#5E3ECC #CC5E3E #3ECC5E
tetradic
#5E3ECC #CC3E65 #ACCC3E #3ECCA5
square
#5E3ECC #CC3E65 #ACCC3E #3ECCA5
split-complementary
#5E3ECC #CCA53E #65CC3E
monochromatic
#311E72 #462BA2 #5E3ECC #866ED9 #AF9FE6

Accessibility & contrast

On white

6.91
#5E3ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5E3ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E3ECC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3ECC#FFFFFF#000000##FFFFFF
##5E3ECC1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#2F6380
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e3ecc;
/* rgb */ color: rgb(94, 62, 204);
/* oklch */ color: oklch(48.9% 0.206 286.3);
Tailwind
colors: {
  custom: {
    50: '#9676dd',
    500: '#5e3ecc',
    950: '#000000',
  },
}
SCSS
$custom: #5e3ecc;
$custom-light: #9676dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3ecc",
  "rgb": {
    "r": 94,
    "g": 62,
    "b": 204
  },
  "hsl": {
    "h": 253.521,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48857,
    "c": 0.20637,
    "h": 286.3
  },
  "luminance": 0.10185
}

Semantic roles & 50–950 ramp

primary
#5E3ECC
secondary
#C4D294
accent
#E146BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E3ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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