#4E2AB2#4E2AB2

#4E2AB2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.198 H 286.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4E2AB2
RGBrgb(78, 42, 178)
HSLhsl(256, 62%, 43%)
HSVhsv(256, 76%, 70%)
CMYKcmyk(56.2%, 76.4%, 0%, 30.2%)
CIE-LABlab(30.61, 49.93, -66.06)
CIE-LCHlch(30.61, 82.80, 307.08°)
OKLaboklab(42.42% 0.0566 -0.1902)
OKLCHoklch(42.42% 0.198 286.6)
XYZxyz(12.0033, 6.4893, 42.7309)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AB2 #8EB22A
analogous
#2A4AB2 #4E2AB2 #922AB2
triadic
#4E2AB2 #B24E2A #2AB24E
tetradic
#4E2AB2 #B22A4A #8EB22A #2AB292
square
#4E2AB2 #B22A4A #8EB22A #2AB292
split-complementary
#4E2AB2 #B2922A #4AB22A
monochromatic
#23134F #381E80 #4E2AB2 #6B46D3 #9377DF

Accessibility & contrast

On white

9.14
#4E2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4E2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AB2
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AB2#FFFFFF#000000##FFFFFF
##4E2AB21.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#20516D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2ab2;
/* rgb */ color: rgb(78, 42, 178);
/* oklch */ color: oklch(42.4% 0.198 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b68ca',
    500: '#4e2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ab2;
$custom-light: #8b68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ab2",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 255.882,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.19839,
    "h": 286.6
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#4E2AB2
secondary
#B0C771
accent
#E543BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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