#4E2EB1#4E2EB1

#4E2EB1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.193 H 286.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4E2EB1
RGBrgb(78, 46, 177)
HSLhsl(255, 59%, 44%)
HSVhsv(255, 74%, 69%)
CMYKcmyk(55.9%, 74%, 0%, 30.6%)
CIE-LABlab(31.22, 47.64, -64.46)
CIE-LCHlch(31.22, 80.15, 306.47°)
OKLaboklab(42.82% 0.0538 -0.1855)
OKLCHoklch(42.82% 0.193 286.2)
XYZxyz(12.0523, 6.7473, 42.2537)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EB1 #91B12E
analogous
#2E50B1 #4E2EB1 #8F2EB1
triadic
#4E2EB1 #B14E2E #2EB14E
tetradic
#4E2EB1 #B12E50 #91B12E #2EB18F
square
#4E2EB1 #B12E50 #91B12E #2EB18F
split-complementary
#4E2EB1 #B18F2E #50B12E
monochromatic
#231550 #392180 #4E2EB1 #6C4CD0 #947CDD

Accessibility & contrast

On white

8.94
#4E2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E2EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2EB1
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2EB1#FFFFFF#000000##FFFFFF
##4E2EB11.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#21526D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e2eb1;
/* rgb */ color: rgb(78, 46, 177);
/* oklch */ color: oklch(42.8% 0.193 286.2);
Tailwind
colors: {
  custom: {
    50: '#8a6ac9',
    500: '#4e2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #4e2eb1;
$custom-light: #8a6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2eb1",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 254.656,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42821,
    "c": 0.19315,
    "h": 286.2
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#4E2EB1
secondary
#B2C675
accent
#E246BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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