#4E2397#4E2397

#4E2397 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.175 H 293.5°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4E2397
RGBrgb(78, 35, 151)
HSLhsl(262, 62%, 36%)
HSVhsv(262, 77%, 59%)
CMYKcmyk(48.3%, 76.8%, 0%, 40.8%)
CIE-LABlab(26.89, 45.74, -55.84)
CIE-LCHlch(26.89, 72.18, 309.33°)
OKLaboklab(39.04% 0.0695 -0.1602)
OKLCHoklch(39.04% 0.175 293.5)
XYZxyz(9.3273, 5.0558, 29.7566)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2397 #6C9723
analogous
#233297 #4E2397 #882397
triadic
#4E2397 #974E23 #23974E
tetradic
#4E2397 #972332 #6C9723 #239788
square
#4E2397 #972332 #6C9723 #239788
split-complementary
#4E2397 #978823 #329723
monochromatic
#1B0C34 #341765 #4E2397 #682FC9 #8A5BD9

Accessibility & contrast

On white

10.44
#4E2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2397
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2397#FFFFFF#000000##FFFFFF
##4E23971.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#38435C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2397;
/* rgb */ color: rgb(78, 35, 151);
/* oklch */ color: oklch(39.0% 0.175 293.5);
Tailwind
colors: {
  custom: {
    50: '#8763b7',
    500: '#4e2397',
    950: '#000000',
  },
}
SCSS
$custom: #4e2397;
$custom-light: #8763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2397",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 262.241,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39037,
    "c": 0.17459,
    "h": 293.5
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#4E2397
secondary
#98BE58
accent
#E542A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2397

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

Preview Lab → · Contrast checker → · Palette generator →

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