#4E2696#4E2696

#4E2696 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.170 H 293.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4E2696
RGBrgb(78, 38, 150)
HSLhsl(261, 60%, 37%)
HSVhsv(261, 75%, 59%)
CMYKcmyk(48%, 74.7%, 0%, 41.2%)
CIE-LABlab(27.32, 44.00, -54.53)
CIE-LCHlch(27.32, 70.07, 308.90°)
OKLaboklab(39.31% 0.0671 -0.1563)
OKLCHoklch(39.31% 0.17 293.2)
XYZxyz(9.3385, 5.2076, 29.3614)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2696 #6E9626
analogous
#263696 #4E2696 #862696
triadic
#4E2696 #964E26 #26964E
tetradic
#4E2696 #962636 #6E9626 #269686
square
#4E2696 #962636 #6E9626 #269686
split-complementary
#4E2696 #968626 #369626
monochromatic
#1B0D34 #351A65 #4E2696 #6732C7 #8A60D7

Accessibility & contrast

On white

10.29
#4E2696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2696
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2696#FFFFFF#000000##FFFFFF
##4E26961.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#38445C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2696;
/* rgb */ color: rgb(78, 38, 150);
/* oklch */ color: oklch(39.3% 0.170 293.2);
Tailwind
colors: {
  custom: {
    50: '#8764b6',
    500: '#4e2696',
    950: '#000000',
  },
}
SCSS
$custom: #4e2696;
$custom-light: #8764b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2696",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 261.429,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39309,
    "c": 0.17014,
    "h": 293.2
  },
  "luminance": 0.05208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2696

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

Preview Lab → · Contrast checker → · Palette generator →

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