#4E2197#4E2197

#4E2197 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.177 H 293.8°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#4E2197
RGBrgb(78, 33, 151)
HSLhsl(263, 64%, 36%)
HSVhsv(263, 78%, 59%)
CMYKcmyk(48.3%, 78.1%, 0%, 40.8%)
CIE-LABlab(26.57, 46.67, -56.37)
CIE-LCHlch(26.57, 73.18, 309.62°)
OKLaboklab(38.81% 0.0712 -0.1617)
OKLCHoklch(38.81% 0.177 293.8)
XYZxyz(9.2701, 4.9415, 29.7375)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2197 #6A9721
analogous
#212F97 #4E2197 #892197
triadic
#4E2197 #974E21 #21974E
tetradic
#4E2197 #97212F #6A9721 #219789
square
#4E2197 #97212F #6A9721 #219789
split-complementary
#4E2197 #978921 #2F9721
monochromatic
#1A0B33 #341665 #4E2197 #682CC9 #8A58DA

Accessibility & contrast

On white

10.56
#4E2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2197
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2197#FFFFFF#000000##FFFFFF
##4E21971.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#38425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2197;
/* rgb */ color: rgb(78, 33, 151);
/* oklch */ color: oklch(38.8% 0.177 293.8);
Tailwind
colors: {
  custom: {
    50: '#8762b7',
    500: '#4e2197',
    950: '#000000',
  },
}
SCSS
$custom: #4e2197;
$custom-light: #8762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2197",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 262.881,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.17668,
    "h": 293.8
  },
  "luminance": 0.04942
}

Semantic roles & 50–950 ramp

primary
#4E2197
secondary
#96BE55
accent
#E741A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2197

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

Preview Lab → · Contrast checker → · Palette generator →

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