#4E2698#4E2698

#4E2698 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.172 H 292.7°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4E2698
RGBrgb(78, 38, 152)
HSLhsl(261, 60%, 37%)
HSVhsv(261, 75%, 60%)
CMYKcmyk(48.7%, 75%, 0%, 40.4%)
CIE-LABlab(27.50, 44.56, -55.46)
CIE-LCHlch(27.50, 71.14, 308.78°)
OKLaboklab(39.49% 0.0666 -0.1591)
OKLCHoklch(39.49% 0.172 292.7)
XYZxyz(9.5009, 5.2726, 30.2168)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2698 #709826
analogous
#263798 #4E2698 #872698
triadic
#4E2698 #984E26 #26984E
tetradic
#4E2698 #982637 #709826 #269887
square
#4E2698 #982637 #709826 #269887
split-complementary
#4E2698 #988726 #379826
monochromatic
#1C0E36 #351A67 #4E2698 #6732C9 #8B61D7

Accessibility & contrast

On white

10.22
#4E2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2698
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2698#FFFFFF#000000##FFFFFF
##4E26981.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#37445D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2698;
/* rgb */ color: rgb(78, 38, 152);
/* oklch */ color: oklch(39.5% 0.172 292.7);
Tailwind
colors: {
  custom: {
    50: '#8764b7',
    500: '#4e2698',
    950: '#000000',
  },
}
SCSS
$custom: #4e2698;
$custom-light: #8764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2698",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 261.053,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39491,
    "c": 0.17246,
    "h": 292.7
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#4E2698
secondary
#9BBD5D
accent
#E345AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2698

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

Preview Lab → · Contrast checker → · Palette generator →

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