#4E2996#4E2996

#4E2996 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.167 H 292.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4E2996
RGBrgb(78, 41, 150)
HSLhsl(260, 57%, 37%)
HSVhsv(260, 73%, 59%)
CMYKcmyk(48%, 72.7%, 0%, 41.2%)
CIE-LABlab(27.86, 42.46, -53.63)
CIE-LCHlch(27.86, 68.41, 308.37°)
OKLaboklab(39.7% 0.0643 -0.1537)
OKLCHoklch(39.7% 0.167 292.7)
XYZxyz(9.4383, 5.4073, 29.3947)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2996 #719629
analogous
#293B96 #4E2996 #852996
triadic
#4E2996 #964E29 #29964E
tetradic
#4E2996 #96293B #719629 #299685
square
#4E2996 #96293B #719629 #299685
split-complementary
#4E2996 #968529 #3B9629
monochromatic
#1C0F36 #351C66 #4E2996 #6736C6 #8B65D5

Accessibility & contrast

On white

10.09
#4E2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4E2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2996
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2996#FFFFFF#000000##FFFFFF
##4E29961.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#38455D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2996;
/* rgb */ color: rgb(78, 41, 150);
/* oklch */ color: oklch(39.7% 0.167 292.7);
Tailwind
colors: {
  custom: {
    50: '#8766b6',
    500: '#4e2996',
    950: '#000000',
  },
}
SCSS
$custom: #4e2996;
$custom-light: #8766b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2996",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 260.367,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39696,
    "c": 0.16664,
    "h": 292.7
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#4E2996
secondary
#9CBB60
accent
#E047AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2996

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

Preview Lab → · Contrast checker → · Palette generator →

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