#4E2EA8#4E2EA8

#4E2EA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.182 H 287.8°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4E2EA8
RGBrgb(78, 46, 168)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 73%, 66%)
CMYKcmyk(53.6%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.40, 45.02, -60.42)
CIE-LCHlch(30.40, 75.34, 306.69°)
OKLaboklab(41.99% 0.0559 -0.1737)
OKLCHoklch(41.99% 0.182 287.8)
XYZxyz(11.1847, 6.4003, 37.6842)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA8 #88A82E
analogous
#2E4BA8 #4E2EA8 #8B2EA8
triadic
#4E2EA8 #A84E2E #2EA84E
tetradic
#4E2EA8 #A82E4B #88A82E #2EA88B
square
#4E2EA8 #A82E4B #88A82E #2EA88B
split-complementary
#4E2EA8 #A88B2E #4BA82E
monochromatic
#211448 #382178 #4E2EA8 #6A47CD #9177DA

Accessibility & contrast

On white

9.21
#4E2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2EA8
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2EA8#FFFFFF#000000##FFFFFF
##4E2EA81.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#2A4F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2ea8;
/* rgb */ color: rgb(78, 46, 168);
/* oklch */ color: oklch(42.0% 0.182 287.8);
Tailwind
colors: {
  custom: {
    50: '#896ac3',
    500: '#4e2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea8;
$custom-light: #896ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea8",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 255.738,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41986,
    "c": 0.18244,
    "h": 287.8
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#4E2EA8
secondary
#ACC270
accent
#E048B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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