#4E2793#4E2793

#4E2793 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.165 H 293.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4E2793
RGBrgb(78, 39, 147)
HSLhsl(262, 58%, 36%)
HSVhsv(262, 73%, 58%)
CMYKcmyk(46.9%, 73.5%, 0%, 42.4%)
CIE-LABlab(27.23, 42.66, -52.82)
CIE-LCHlch(27.23, 67.89, 308.93°)
OKLaboklab(39.17% 0.0669 -0.1513)
OKLCHoklch(39.17% 0.165 293.8)
XYZxyz(9.1324, 5.1771, 28.1162)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2793 #6C9327
analogous
#273693 #4E2793 #842793
triadic
#4E2793 #934E27 #27934E
tetradic
#4E2793 #932736 #6C9327 #279384
square
#4E2793 #932736 #6C9327 #279384
split-complementary
#4E2793 #938427 #369327
monochromatic
#1B0D32 #341A63 #4E2793 #6834C3 #8A60D5

Accessibility & contrast

On white

10.32
#4E2793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4E2793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2793
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2793#FFFFFF#000000##FFFFFF
##4E27931.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#3A435A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2793;
/* rgb */ color: rgb(78, 39, 147);
/* oklch */ color: oklch(39.2% 0.165 293.8);
Tailwind
colors: {
  custom: {
    50: '#8665b4',
    500: '#4e2793',
    950: '#000000',
  },
}
SCSS
$custom: #4e2793;
$custom-light: #8665b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2793",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 261.667,
    "s": 58.065,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39167,
    "c": 0.16545,
    "h": 293.8
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#4E2793
secondary
#98BA5C
accent
#E147A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2793

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

Preview Lab → · Contrast checker → · Palette generator →

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