#4E2762#4E2762

#4E2762 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.3% C 0.106 H 312.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4E2762
RGBrgb(78, 39, 98)
HSLhsl(280, 43%, 27%)
HSVhsv(280, 60%, 38%)
CMYKcmyk(20.4%, 60.2%, 0%, 61.6%)
CIE-LABlab(23.51, 29.55, -27.75)
CIE-LCHlch(23.51, 40.54, 316.80°)
OKLaboklab(35.32% 0.0719 -0.0777)
OKLCHoklch(35.32% 0.106 312.7)
XYZxyz(6.0716, 3.9527, 11.9960)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2762 #3B6227
analogous
#312762 #4E2762 #622759
triadic
#4E2762 #624E27 #27624E
tetradic
#4E2762 #623127 #3B6227 #275962
square
#4E2762 #623127 #3B6227 #275962
split-complementary
#4E2762 #596227 #276231
monochromatic
#110916 #2B1636 #4E2762 #71388E #934CB8

Accessibility & contrast

On white

11.73
#4E2762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E2762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2762
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2762#FFFFFF#000000##FFFFFF
##4E27621.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163664
Deuteranopia (green-blind)
#243961
Tritanopia (blue-blind)
#4C3140
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2762;
/* rgb */ color: rgb(78, 39, 98);
/* oklch */ color: oklch(35.3% 0.106 312.7);
Tailwind
colors: {
  custom: {
    50: '#81638f',
    500: '#4e2762',
    950: '#000000',
  },
}
SCSS
$custom: #4e2762;
$custom-light: #81638f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2762",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 98
  },
  "hsl": {
    "h": 279.661,
    "s": 43.066,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35316,
    "c": 0.10586,
    "h": 312.7
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#4E2762
secondary
#679550
accent
#D35580
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A050C
muted
#7C7A7D

Preview Lab

Preview with #4E2762

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

Preview Lab → · Contrast checker → · Palette generator →

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