#4E2FAB#4E2FAB

#4E2FAB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.185 H 287.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4E2FAB
RGBrgb(78, 47, 171)
HSLhsl(255, 57%, 43%)
HSVhsv(255, 73%, 67%)
CMYKcmyk(54.4%, 72.5%, 0%, 32.9%)
CIE-LABlab(30.86, 45.36, -61.47)
CIE-LCHlch(30.86, 76.40, 306.43°)
OKLaboklab(42.4% 0.0544 -0.1767)
OKLCHoklch(42.4% 0.185 287.1)
XYZxyz(11.5069, 6.5924, 39.1863)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FAB #8CAB2F
analogous
#2F4EAB #4E2FAB #8C2FAB
triadic
#4E2FAB #AB4E2F #2FAB4E
tetradic
#4E2FAB #AB2F4E #8CAB2F #2FAB8C
square
#4E2FAB #AB2F4E #8CAB2F #2FAB8C
split-complementary
#4E2FAB #AB8C2F #4EAB2F
monochromatic
#22154B #38227B #4E2FAB #6B4ACD #927ADA

Accessibility & contrast

On white

9.06
#4E2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2FAB
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FAB#FFFFFF#000000##FFFFFF
##4E2FAB1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#27506A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e2fab;
/* rgb */ color: rgb(78, 47, 171);
/* oklch */ color: oklch(42.4% 0.185 287.1);
Tailwind
colors: {
  custom: {
    50: '#896bc5',
    500: '#4e2fab',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fab;
$custom-light: #896bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fab",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 255,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42395,
    "c": 0.18493,
    "h": 287.1
  },
  "luminance": 0.06593
}

Semantic roles & 50–950 ramp

primary
#4E2FAB
secondary
#AFC373
accent
#E048BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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