#4E2C9C#4E2C9C

#4E2C9C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.170 H 290.7°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4E2C9C
RGBrgb(78, 44, 156)
HSLhsl(258, 56%, 39%)
HSVhsv(258, 72%, 61%)
CMYKcmyk(50%, 71.8%, 0%, 38.8%)
CIE-LABlab(28.96, 42.59, -55.52)
CIE-LCHlch(28.96, 69.97, 307.50°)
OKLaboklab(40.63% 0.0602 -0.1593)
OKLCHoklch(40.63% 0.17 290.7)
XYZxyz(10.0416, 5.8210, 32.0405)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C9C #7A9C2C
analogous
#2C429C #4E2C9C #862C9C
triadic
#4E2C9C #9C4E2C #2C9C4E
tetradic
#4E2C9C #9C2C42 #7A9C2C #2C9C86
square
#4E2C9C #9C2C42 #7A9C2C #2C9C86
split-complementary
#4E2C9C #9C862C #429C2C
monochromatic
#1E113D #361F6C #4E2C9C #673DC8 #8D6DD6

Accessibility & contrast

On white

9.70
#4E2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2C9C
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C9C#FFFFFF#000000##FFFFFF
##4E2C9C1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#344961
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2c9c;
/* rgb */ color: rgb(78, 44, 156);
/* oklch */ color: oklch(40.6% 0.170 290.7);
Tailwind
colors: {
  custom: {
    50: '#8768ba',
    500: '#4e2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c9c;
$custom-light: #8768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c9c",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 258.214,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40633,
    "c": 0.17029,
    "h": 290.7
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#4E2C9C
secondary
#A3BD67
accent
#DF49B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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