#4E2773#4E2773

#4E2773 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.127 H 304.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4E2773
RGBrgb(78, 39, 115)
HSLhsl(271, 49%, 30%)
HSVhsv(271, 66%, 45%)
CMYKcmyk(32.2%, 66.1%, 0%, 54.9%)
CIE-LABlab(24.67, 33.91, -36.90)
CIE-LCHlch(24.67, 50.12, 312.58°)
OKLaboklab(36.52% 0.0717 -0.1045)
OKLCHoklch(36.52% 0.127 304.4)
XYZxyz(6.9612, 4.3086, 16.6812)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2773 #4C7327
analogous
#282773 #4E2773 #732772
triadic
#4E2773 #734E27 #27734E
tetradic
#4E2773 #732827 #4C7327 #277273
square
#4E2773 #732827 #4C7327 #277273
split-complementary
#4E2773 #727327 #277328
monochromatic
#100818 #2F1845 #4E2773 #6D36A1 #8C51C4

Accessibility & contrast

On white

11.28
#4E2773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E2773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2773
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2773#FFFFFF#000000##FFFFFF
##4E27731.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#133B71
Tritanopia (blue-blind)
#473749
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2773;
/* rgb */ color: rgb(78, 39, 115);
/* oklch */ color: oklch(36.5% 0.127 304.4);
Tailwind
colors: {
  custom: {
    50: '#83649c',
    500: '#4e2773',
    950: '#000000',
  },
}
SCSS
$custom: #4e2773;
$custom-light: #83649c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2773",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 115
  },
  "hsl": {
    "h": 270.789,
    "s": 49.351,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36524,
    "c": 0.12679,
    "h": 304.4
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#4E2773
secondary
#7AA550
accent
#D94F92
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2773

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

Preview Lab → · Contrast checker → · Palette generator →

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