#5E34B8#5E34B8

#5E34B8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.194 H 291.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5E34B8
RGBrgb(94, 52, 184)
HSLhsl(259, 56%, 46%)
HSVhsv(259, 72%, 72%)
CMYKcmyk(48.9%, 71.7%, 0%, 27.8%)
CIE-LABlab(34.59, 49.06, -63.03)
CIE-LCHlch(34.59, 79.88, 307.89°)
OKLaboklab(45.79% 0.0707 -0.1808)
OKLCHoklch(45.79% 0.194 291.3)
XYZxyz(14.4934, 8.2958, 46.1757)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34B8 #8EB834
analogous
#344CB8 #5E34B8 #A034B8
triadic
#5E34B8 #B85E34 #34B85E
tetradic
#5E34B8 #B8344C #8EB834 #34B8A0
square
#5E34B8 #B8344C #8EB834 #34B8A0
split-complementary
#5E34B8 #B8A034 #4CB834
monochromatic
#2D1959 #462788 #5E34B8 #7F59D0 #A489DE

Accessibility & contrast

On white

7.90
#5E34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5E34B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34B8
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34B8#FFFFFF#000000##FFFFFF
##5E34B81.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#415673
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e34b8;
/* rgb */ color: rgb(94, 52, 184);
/* oklch */ color: oklch(45.8% 0.194 291.3);
Tailwind
colors: {
  custom: {
    50: '#946fce',
    500: '#5e34b8',
    950: '#000000',
  },
}
SCSS
$custom: #5e34b8;
$custom-light: #946fce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34b8",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 259.091,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45785,
    "c": 0.19415,
    "h": 291.3
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#5E34B8
secondary
#B1C880
accent
#DF49AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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