#4E2295#4E2295

#4E2295 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.173 H 294.1°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4E2295
RGBrgb(78, 34, 149)
HSLhsl(263, 63%, 36%)
HSVhsv(263, 77%, 58%)
CMYKcmyk(47.7%, 77.2%, 0%, 41.6%)
CIE-LABlab(26.54, 45.67, -55.18)
CIE-LCHlch(26.54, 71.63, 309.61°)
OKLaboklab(38.74% 0.0709 -0.1582)
OKLCHoklch(38.74% 0.173 294.1)
XYZxyz(9.1372, 4.9334, 28.8988)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2295 #699522
analogous
#222F95 #4E2295 #872295
triadic
#4E2295 #954E22 #22954E
tetradic
#4E2295 #95222F #699522 #229587
square
#4E2295 #95222F #699522 #229587
split-complementary
#4E2295 #958722 #2F9522
monochromatic
#1A0B31 #341763 #4E2295 #682DC7 #8A58D9

Accessibility & contrast

On white

10.57
#4E2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2295
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2295#FFFFFF#000000##FFFFFF
##4E22951.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003D93
Tritanopia (blue-blind)
#39415A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2295;
/* rgb */ color: rgb(78, 34, 149);
/* oklch */ color: oklch(38.7% 0.173 294.1);
Tailwind
colors: {
  custom: {
    50: '#8762b5',
    500: '#4e2295',
    950: '#000000',
  },
}
SCSS
$custom: #4e2295;
$custom-light: #8762b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2295",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 262.957,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38736,
    "c": 0.17338,
    "h": 294.1
  },
  "luminance": 0.04934
}

Semantic roles & 50–950 ramp

primary
#4E2295
secondary
#96BD56
accent
#E642A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2295

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

Preview Lab → · Contrast checker → · Palette generator →

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