#4E2792#4E2792

#4E2792 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.164 H 294.1°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#4E2792
RGBrgb(78, 39, 146)
HSLhsl(262, 58%, 36%)
HSVhsv(262, 73%, 57%)
CMYKcmyk(46.6%, 73.3%, 0%, 42.7%)
CIE-LABlab(27.15, 42.38, -52.34)
CIE-LCHlch(27.15, 67.35, 308.99°)
OKLaboklab(39.08% 0.0671 -0.1499)
OKLCHoklch(39.08% 0.164 294.1)
XYZxyz(9.0543, 5.1458, 27.7047)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2792 #6B9227
analogous
#273692 #4E2792 #842792
triadic
#4E2792 #924E27 #27924E
tetradic
#4E2792 #922736 #6B9227 #279284
square
#4E2792 #922736 #6B9227 #279284
split-complementary
#4E2792 #928427 #369227
monochromatic
#1A0D31 #341A62 #4E2792 #6834C2 #8A5FD4

Accessibility & contrast

On white

10.35
#4E2792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E2792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2792
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2792#FFFFFF#000000##FFFFFF
##4E27921.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2792;
/* rgb */ color: rgb(78, 39, 146);
/* oklch */ color: oklch(39.1% 0.164 294.1);
Tailwind
colors: {
  custom: {
    50: '#8665b3',
    500: '#4e2792',
    950: '#000000',
  },
}
SCSS
$custom: #4e2792;
$custom-light: #8665b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2792",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 261.869,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39078,
    "c": 0.16427,
    "h": 294.1
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#4E2792
secondary
#97BA5B
accent
#E147A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2792

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

Preview Lab → · Contrast checker → · Palette generator →

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