#4E2863#4E2863

#4E2863 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.5% C 0.105 H 312.0°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2863
RGBrgb(78, 40, 99)
HSLhsl(279, 42%, 27%)
HSVhsv(279, 60%, 39%)
CMYKcmyk(21.2%, 59.6%, 0%, 61.2%)
CIE-LABlab(23.80, 29.22, -27.95)
CIE-LCHlch(23.80, 40.43, 316.27°)
OKLaboklab(35.54% 0.0704 -0.0783)
OKLCHoklch(35.54% 0.105 312)
XYZxyz(6.1524, 4.0383, 12.2573)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2863 #3D6328
analogous
#312863 #4E2863 #63285B
triadic
#4E2863 #634E28 #28634E
tetradic
#4E2863 #633128 #3D6328 #285B63
square
#4E2863 #633128 #3D6328 #285B63
split-complementary
#4E2863 #5B6328 #286331
monochromatic
#110916 #2C1637 #4E2863 #703A8F #924EB7

Accessibility & contrast

On white

11.62
#4E2863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2863
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2863#FFFFFF#000000##FFFFFF
##4E28631.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173765
Deuteranopia (green-blind)
#243962
Tritanopia (blue-blind)
#4C3241
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2863;
/* rgb */ color: rgb(78, 40, 99);
/* oklch */ color: oklch(35.5% 0.105 312.0);
Tailwind
colors: {
  custom: {
    50: '#816490',
    500: '#4e2863',
    950: '#000000',
  },
}
SCSS
$custom: #4e2863;
$custom-light: #816490;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2863",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 99
  },
  "hsl": {
    "h": 278.644,
    "s": 42.446,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35543,
    "c": 0.10534,
    "h": 312
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#4E2863
secondary
#6A9651
accent
#D25682
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A050C
muted
#7C7A7D

Preview Lab

Preview with #4E2863

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

Preview Lab → · Contrast checker → · Palette generator →

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