#4E2A98#4E2A98

#4E2A98 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.168 H 292.0°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4E2A98
RGBrgb(78, 42, 152)
HSLhsl(260, 57%, 38%)
HSVhsv(260, 72%, 60%)
CMYKcmyk(48.7%, 72.4%, 0%, 40.4%)
CIE-LABlab(28.23, 42.51, -54.27)
CIE-LCHlch(28.23, 68.93, 308.07°)
OKLaboklab(40.01% 0.0629 -0.1556)
OKLCHoklch(40.01% 0.168 292)
XYZxyz(9.6358, 5.5423, 30.2617)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A98 #74982A
analogous
#2A3D98 #4E2A98 #852A98
triadic
#4E2A98 #984E2A #2A984E
tetradic
#4E2A98 #982A3D #74982A #2A9885
square
#4E2A98 #982A3D #74982A #2A9885
split-complementary
#4E2A98 #98852A #3D982A
monochromatic
#1D1038 #351D68 #4E2A98 #6737C8 #8B67D5

Accessibility & contrast

On white

9.96
#4E2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A98
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A98#FFFFFF#000000##FFFFFF
##4E2A981.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#37465E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2a98;
/* rgb */ color: rgb(78, 42, 152);
/* oklch */ color: oklch(40.0% 0.168 292.0);
Tailwind
colors: {
  custom: {
    50: '#8767b7',
    500: '#4e2a98',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a98;
$custom-light: #8767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a98",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 259.636,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.16785,
    "h": 292
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#4E2A98
secondary
#9EBB62
accent
#E048AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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