#4E2AB5#4E2AB5

#4E2AB5 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.7% C 0.202 H 286.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4E2AB5
RGBrgb(78, 42, 181)
HSLhsl(256, 62%, 44%)
HSVhsv(256, 77%, 71%)
CMYKcmyk(56.9%, 76.8%, 0%, 29%)
CIE-LABlab(30.90, 50.78, -67.37)
CIE-LCHlch(30.90, 84.36, 307.01°)
OKLaboklab(42.71% 0.0558 -0.194)
OKLCHoklch(42.71% 0.202 286)
XYZxyz(12.3078, 6.6111, 44.3346)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AB5 #91B52A
analogous
#2A4BB5 #4E2AB5 #932AB5
triadic
#4E2AB5 #B54E2A #2AB54E
tetradic
#4E2AB5 #B52A4B #91B52A #2AB593
square
#4E2AB5 #B52A4B #91B52A #2AB593
split-complementary
#4E2AB5 #B5932A #4BB52A
monochromatic
#231352 #391E83 #4E2AB5 #6C48D4 #9479E0

Accessibility & contrast

On white

9.04
#4E2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AB5
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AB5#FFFFFF#000000##FFFFFF
##4E2AB51.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#1B526E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e2ab5;
/* rgb */ color: rgb(78, 42, 181);
/* oklch */ color: oklch(42.7% 0.202 286.0);
Tailwind
colors: {
  custom: {
    50: '#8b68cc',
    500: '#4e2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ab5;
$custom-light: #8b68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ab5",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 255.54,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42712,
    "c": 0.20184,
    "h": 286
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#4E2AB5
secondary
#B2C873
accent
#E542BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4E2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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