#4E348E#4E348E

#4E348E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.142 H 292.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4E348E
RGBrgb(78, 52, 142)
HSLhsl(257, 46%, 38%)
HSVhsv(257, 63%, 56%)
CMYKcmyk(45.1%, 63.4%, 0%, 44.3%)
CIE-LABlab(29.48, 33.94, -46.07)
CIE-LCHlch(29.48, 57.23, 306.38°)
OKLaboklab(40.66% 0.0537 -0.1315)
OKLCHoklch(40.66% 0.142 292.2)
XYZxyz(9.2510, 6.0284, 26.2621)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E348E #748E34
analogous
#34478E #4E348E #7B348E
triadic
#4E348E #8E4E34 #348E4E
tetradic
#4E348E #8E3447 #748E34 #348E7B
square
#4E348E #8E3447 #748E34 #348E7B
split-complementary
#4E348E #8E7B34 #478E34
monochromatic
#1D1334 #352461 #4E348E #6744BB #8B71CB

Accessibility & contrast

On white

9.52
#4E348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E348E
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E348E#FFFFFF#000000##FFFFFF
##4E348E1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#3C495C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e348e;
/* rgb */ color: rgb(78, 52, 142);
/* oklch */ color: oklch(40.7% 0.142 292.2);
Tailwind
colors: {
  custom: {
    50: '#856db0',
    500: '#4e348e',
    950: '#000000',
  },
}
SCSS
$custom: #4e348e;
$custom-light: #856db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e348e",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 257.333,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.14207,
    "h": 292.2
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#4E348E
secondary
#9EB36A
accent
#D652B0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E348E

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

Preview Lab → · Contrast checker → · Palette generator →

#4E348E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva