#4E328C#4E328C

#4E328C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.142 H 293.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4E328C
RGBrgb(78, 50, 140)
HSLhsl(259, 47%, 37%)
HSVhsv(259, 64%, 55%)
CMYKcmyk(44.3%, 64.3%, 0%, 45.1%)
CIE-LABlab(28.89, 34.54, -45.81)
CIE-LCHlch(28.89, 57.37, 307.02°)
OKLaboklab(40.17% 0.0562 -0.1307)
OKLCHoklch(40.17% 0.142 293.3)
XYZxyz(9.0148, 5.7941, 25.4493)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E328C #708C32
analogous
#32438C #4E328C #7B328C
triadic
#4E328C #8C4E32 #328C4E
tetradic
#4E328C #8C3243 #708C32 #328C7B
square
#4E328C #8C3243 #708C32 #328C7B
split-complementary
#4E328C #8C7B32 #438C32
monochromatic
#1C1232 #35225F #4E328C #6742B9 #8B6DCB

Accessibility & contrast

On white

9.73
#4E328C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E328C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E328C
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E328C#FFFFFF#000000##FFFFFF
##4E328C1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#3D475A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e328c;
/* rgb */ color: rgb(78, 50, 140);
/* oklch */ color: oklch(40.2% 0.142 293.3);
Tailwind
colors: {
  custom: {
    50: '#856bae',
    500: '#4e328c',
    950: '#000000',
  },
}
SCSS
$custom: #4e328c;
$custom-light: #856bae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e328c",
  "rgb": {
    "r": 78,
    "g": 50,
    "b": 140
  },
  "hsl": {
    "h": 258.667,
    "s": 47.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40175,
    "c": 0.14231,
    "h": 293.3
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#4E328C
secondary
#9BB367
accent
#D751AD
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E328C

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

Preview Lab → · Contrast checker → · Palette generator →

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