#4E2775#4E2775

#4E2775 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.129 H 303.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#4E2775
RGBrgb(78, 39, 117)
HSLhsl(270, 50%, 31%)
HSVhsv(270, 67%, 46%)
CMYKcmyk(33.3%, 66.7%, 0%, 54.1%)
CIE-LABlab(24.81, 34.44, -37.95)
CIE-LCHlch(24.81, 51.24, 312.23°)
OKLaboklab(36.68% 0.0716 -0.1076)
OKLCHoklch(36.68% 0.129 303.6)
XYZxyz(7.0776, 4.3551, 17.2939)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2775 #4E7527
analogous
#272775 #4E2775 #752775
triadic
#4E2775 #754E27 #27754E
tetradic
#4E2775 #752727 #4E7527 #277575
square
#4E2775 #752727 #4E7527 #277575
split-complementary
#4E2775 #757527 #277527
monochromatic
#110819 #2F1847 #4E2775 #6D36A3 #8B51C5

Accessibility & contrast

On white

11.22
#4E2775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E2775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2775
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2775#FFFFFF#000000##FFFFFF
##4E27751.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#0F3B73
Tritanopia (blue-blind)
#47384A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2775;
/* rgb */ color: rgb(78, 39, 117);
/* oklch */ color: oklch(36.7% 0.129 303.6);
Tailwind
colors: {
  custom: {
    50: '#83649d',
    500: '#4e2775',
    950: '#000000',
  },
}
SCSS
$custom: #4e2775;
$custom-light: #83649d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2775",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 117
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36676,
    "c": 0.12925,
    "h": 303.6
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

primary
#4E2775
secondary
#7CA751
accent
#DA4E94
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2775

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

Preview Lab → · Contrast checker → · Palette generator →

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