#4E2997#4E2997

#4E2997 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.168 H 292.5°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4E2997
RGBrgb(78, 41, 151)
HSLhsl(260, 57%, 38%)
HSVhsv(260, 73%, 59%)
CMYKcmyk(48.3%, 72.8%, 0%, 40.8%)
CIE-LABlab(27.95, 42.75, -54.10)
CIE-LCHlch(27.95, 68.95, 308.31°)
OKLaboklab(39.78% 0.0641 -0.1551)
OKLCHoklch(39.78% 0.168 292.5)
XYZxyz(9.5192, 5.4396, 29.8205)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2997 #729729
analogous
#293B97 #4E2997 #852997
triadic
#4E2997 #974E29 #29974E
tetradic
#4E2997 #97293B #729729 #299785
square
#4E2997 #97293B #729729 #299785
split-complementary
#4E2997 #978529 #3B9729
monochromatic
#1C0F37 #351C67 #4E2997 #6736C7 #8B65D5

Accessibility & contrast

On white

10.06
#4E2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2997
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2997#FFFFFF#000000##FFFFFF
##4E29971.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#37455D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2997;
/* rgb */ color: rgb(78, 41, 151);
/* oklch */ color: oklch(39.8% 0.168 292.5);
Tailwind
colors: {
  custom: {
    50: '#8766b7',
    500: '#4e2997',
    950: '#000000',
  },
}
SCSS
$custom: #4e2997;
$custom-light: #8766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2997",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 260.182,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39785,
    "c": 0.16783,
    "h": 292.5
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#4E2997
secondary
#9DBB61
accent
#E147AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2997

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

Preview Lab → · Contrast checker → · Palette generator →

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