#5E34CC#5E34CC

#5E34CC is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.217 H 287.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5E34CC
RGBrgb(94, 52, 204)
HSLhsl(257, 60%, 50%)
HSVhsv(257, 75%, 80%)
CMYKcmyk(53.9%, 74.5%, 0%, 20%)
CIE-LABlab(36.36, 54.60, -71.86)
CIE-LCHlch(36.36, 90.25, 307.22°)
OKLaboklab(47.57% 0.0661 -0.2067)
OKLCHoklch(47.57% 0.217 287.7)
XYZxyz(16.7399, 9.1944, 58.0077)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34CC #A2CC34
analogous
#3456CC #5E34CC #AA34CC
triadic
#5E34CC #CC5E34 #34CC5E
tetradic
#5E34CC #CC3456 #A2CC34 #34CCAA
square
#5E34CC #CC3456 #A2CC34 #34CCAA
split-complementary
#5E34CC #CCAA34 #56CC34
monochromatic
#311B6B #47279C #5E34CC #8565D8 #AC96E5

Accessibility & contrast

On white

7.40
#5E34CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5E34CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34CC
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34CC#FFFFFF#000000##FFFFFF
##5E34CC1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#305E7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e34cc;
/* rgb */ color: rgb(94, 52, 204);
/* oklch */ color: oklch(47.6% 0.217 287.7);
Tailwind
colors: {
  custom: {
    50: '#9770dd',
    500: '#5e34cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e34cc;
$custom-light: #9770dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34cc",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 256.579,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.21702,
    "h": 287.7
  },
  "luminance": 0.09195
}

Semantic roles & 50–950 ramp

primary
#5E34CC
secondary
#BDD08C
accent
#E345B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5E34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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