#4E2697#4E2697

#4E2697 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.171 H 293.0°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4E2697
RGBrgb(78, 38, 151)
HSLhsl(261, 60%, 37%)
HSVhsv(261, 75%, 59%)
CMYKcmyk(48.3%, 74.8%, 0%, 40.8%)
CIE-LABlab(27.41, 44.28, -54.99)
CIE-LCHlch(27.41, 70.60, 308.84°)
OKLaboklab(39.4% 0.0669 -0.1577)
OKLCHoklch(39.4% 0.171 293)
XYZxyz(9.4194, 5.2400, 29.7873)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2697 #6F9726
analogous
#263797 #4E2697 #872697
triadic
#4E2697 #974E26 #26974E
tetradic
#4E2697 #972637 #6F9726 #269787
square
#4E2697 #972637 #6F9726 #269787
split-complementary
#4E2697 #978726 #379726
monochromatic
#1B0D35 #351A66 #4E2697 #6732C8 #8A60D7

Accessibility & contrast

On white

10.25
#4E2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2697
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2697#FFFFFF#000000##FFFFFF
##4E26971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#37445C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2697;
/* rgb */ color: rgb(78, 38, 151);
/* oklch */ color: oklch(39.4% 0.171 293.0);
Tailwind
colors: {
  custom: {
    50: '#8764b7',
    500: '#4e2697',
    950: '#000000',
  },
}
SCSS
$custom: #4e2697;
$custom-light: #8764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2697",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 261.239,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.394,
    "c": 0.1713,
    "h": 293
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#4E2697
secondary
#9ABC5C
accent
#E345AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2697

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

Preview Lab → · Contrast checker → · Palette generator →

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