#4E2396#4E2396

#4E2396 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.173 H 293.7°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4E2396
RGBrgb(78, 35, 150)
HSLhsl(262, 62%, 36%)
HSVhsv(262, 77%, 59%)
CMYKcmyk(48%, 76.7%, 0%, 41.2%)
CIE-LABlab(26.80, 45.47, -55.37)
CIE-LCHlch(26.80, 71.65, 309.39°)
OKLaboklab(38.95% 0.0698 -0.1588)
OKLCHoklch(38.95% 0.173 293.7)
XYZxyz(9.2464, 5.0235, 29.3307)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2396 #6B9623
analogous
#233296 #4E2396 #882396
triadic
#4E2396 #964E23 #23964E
tetradic
#4E2396 #962332 #6B9623 #239688
square
#4E2396 #962332 #6B9623 #239688
split-complementary
#4E2396 #968823 #329623
monochromatic
#1A0C33 #341764 #4E2396 #682FC8 #8A5BD9

Accessibility & contrast

On white

10.47
#4E2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2396
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2396#FFFFFF#000000##FFFFFF
##4E23961.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#38425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2396;
/* rgb */ color: rgb(78, 35, 150);
/* oklch */ color: oklch(38.9% 0.173 293.7);
Tailwind
colors: {
  custom: {
    50: '#8763b6',
    500: '#4e2396',
    950: '#000000',
  },
}
SCSS
$custom: #4e2396;
$custom-light: #8763b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2396",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 262.435,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38945,
    "c": 0.17346,
    "h": 293.7
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

primary
#4E2396
secondary
#97BD58
accent
#E543A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2396

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

Preview Lab → · Contrast checker → · Palette generator →

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