#4E2862#4E2862

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

Color values

HEX#4E2862
RGBrgb(78, 40, 98)
HSLhsl(279, 42%, 27%)
HSVhsv(279, 59%, 38%)
CMYKcmyk(20.4%, 59.2%, 0%, 61.6%)
CIE-LABlab(23.74, 28.97, -27.40)
CIE-LCHlch(23.74, 39.87, 316.59°)
OKLaboklab(35.48% 0.0704 -0.0767)
OKLCHoklch(35.48% 0.104 312.5)
XYZxyz(6.1049, 4.0193, 12.0071)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2862 #3C6228
analogous
#312862 #4E2862 #622859
triadic
#4E2862 #624E28 #28624E
tetradic
#4E2862 #623128 #3C6228 #285962
square
#4E2862 #623128 #3C6228 #285962
split-complementary
#4E2862 #596228 #286231
monochromatic
#110916 #2B1637 #4E2862 #713A8D #924EB7

Accessibility & contrast

On white

11.64
#4E2862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E2862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2862
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2862#FFFFFF#000000##FFFFFF
##4E28621.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183664
Deuteranopia (green-blind)
#253961
Tritanopia (blue-blind)
#4C3241
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2862;
/* rgb */ color: rgb(78, 40, 98);
/* oklch */ color: oklch(35.5% 0.104 312.5);
Tailwind
colors: {
  custom: {
    50: '#81648f',
    500: '#4e2862',
    950: '#000000',
  },
}
SCSS
$custom: #4e2862;
$custom-light: #81648f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2862",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 279.31,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35477,
    "c": 0.1041,
    "h": 312.5
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#4E2862
secondary
#689551
accent
#D25681
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A050C
muted
#7C7A7D

Preview Lab

Preview with #4E2862

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

Preview Lab → · Contrast checker → · Palette generator →

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