#4E2864#4E2864

#4E2864 is a dark, moderate violet. Relative luminance 0.041; OKLCH L 35.6% C 0.107 H 311.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#4E2864
RGBrgb(78, 40, 100)
HSLhsl(278, 43%, 27%)
HSVhsv(278, 60%, 39%)
CMYKcmyk(22%, 60%, 0%, 60.8%)
CIE-LABlab(23.86, 29.47, -28.51)
CIE-LCHlch(23.86, 41.00, 315.95°)
OKLaboklab(35.61% 0.0705 -0.0799)
OKLCHoklch(35.61% 0.107 311.4)
XYZxyz(6.2005, 4.0575, 12.5107)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2864 #3E6428
analogous
#302864 #4E2864 #64285C
triadic
#4E2864 #644E28 #28644E
tetradic
#4E2864 #643028 #3E6428 #285C64
square
#4E2864 #643028 #3E6428 #285C64
split-complementary
#4E2864 #5C6428 #286430
monochromatic
#110916 #2C1738 #4E2864 #703990 #914EB8

Accessibility & contrast

On white

11.59
#4E2864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E2864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2864
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2864#FFFFFF#000000##FFFFFF
##4E28641.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163766
Deuteranopia (green-blind)
#233A63
Tritanopia (blue-blind)
#4B3342
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2864;
/* rgb */ color: rgb(78, 40, 100);
/* oklch */ color: oklch(35.6% 0.107 311.4);
Tailwind
colors: {
  custom: {
    50: '#816490',
    500: '#4e2864',
    950: '#000000',
  },
}
SCSS
$custom: #4e2864;
$custom-light: #816490;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2864",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 100
  },
  "hsl": {
    "h": 278,
    "s": 42.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3561,
    "c": 0.10657,
    "h": 311.4
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#4E2864
secondary
#6B9751
accent
#D35583
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A050C
muted
#7C7A7D

Preview Lab

Preview with #4E2864

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

Preview Lab → · Contrast checker → · Palette generator →

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