#4E2998#4E2998

#4E2998 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.169 H 292.2°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4E2998
RGBrgb(78, 41, 152)
HSLhsl(260, 58%, 38%)
HSVhsv(260, 73%, 60%)
CMYKcmyk(48.7%, 73%, 0%, 40.4%)
CIE-LABlab(28.04, 43.03, -54.57)
CIE-LCHlch(28.04, 69.50, 308.26°)
OKLaboklab(39.87% 0.0639 -0.1565)
OKLCHoklch(39.87% 0.169 292.2)
XYZxyz(9.6007, 5.4722, 30.2501)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2998 #739829
analogous
#293B98 #4E2998 #852998
triadic
#4E2998 #984E29 #29984E
tetradic
#4E2998 #98293B #739829 #299885
square
#4E2998 #98293B #739829 #299885
split-complementary
#4E2998 #988529 #3B9829
monochromatic
#1D0F38 #351C68 #4E2998 #6736C8 #8B66D6

Accessibility & contrast

On white

10.03
#4E2998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2998
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2998#FFFFFF#000000##FFFFFF
##4E29981.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2998;
/* rgb */ color: rgb(78, 41, 152);
/* oklch */ color: oklch(39.9% 0.169 292.2);
Tailwind
colors: {
  custom: {
    50: '#8766b7',
    500: '#4e2998',
    950: '#000000',
  },
}
SCSS
$custom: #4e2998;
$custom-light: #8766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2998",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 260,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39874,
    "c": 0.16903,
    "h": 292.2
  },
  "luminance": 0.05473
}

Semantic roles & 50–950 ramp

primary
#4E2998
secondary
#9EBC61
accent
#E147AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2998

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

Preview Lab → · Contrast checker → · Palette generator →

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