#4E328E#4E328E

#4E328E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.145 H 292.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E328E
RGBrgb(78, 50, 142)
HSLhsl(258, 48%, 38%)
HSVhsv(258, 65%, 56%)
CMYKcmyk(45.1%, 64.8%, 0%, 44.3%)
CIE-LABlab(29.04, 35.13, -46.79)
CIE-LCHlch(29.04, 58.51, 306.90°)
OKLaboklab(40.33% 0.056 -0.1337)
OKLCHoklch(40.33% 0.145 292.7)
XYZxyz(9.1636, 5.8536, 26.2330)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E328E #728E32
analogous
#32448E #4E328E #7C328E
triadic
#4E328E #8E4E32 #328E4E
tetradic
#4E328E #8E3244 #728E32 #328E7C
square
#4E328E #8E3244 #728E32 #328E7C
split-complementary
#4E328E #8E7C32 #448E32
monochromatic
#1C1233 #352261 #4E328E #6742BB #8B6ECC

Accessibility & contrast

On white

9.67
#4E328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E328E
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E328E#FFFFFF#000000##FFFFFF
##4E328E1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#3C475B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e328e;
/* rgb */ color: rgb(78, 50, 142);
/* oklch */ color: oklch(40.3% 0.145 292.7);
Tailwind
colors: {
  custom: {
    50: '#856bb0',
    500: '#4e328e',
    950: '#000000',
  },
}
SCSS
$custom: #4e328e;
$custom-light: #856bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e328e",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 258.261,
    "s": 47.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40334,
    "c": 0.14492,
    "h": 292.7
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#4E328E
secondary
#9DB468
accent
#D850AE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E328E

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

Preview Lab → · Contrast checker → · Palette generator →

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