#4E2FAD#4E2FAD

#4E2FAD is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.187 H 286.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4E2FAD
RGBrgb(78, 47, 173)
HSLhsl(255, 57%, 43%)
HSVhsv(255, 73%, 68%)
CMYKcmyk(54.9%, 72.8%, 0%, 32.2%)
CIE-LABlab(31.04, 45.95, -62.37)
CIE-LCHlch(31.04, 77.47, 306.38°)
OKLaboklab(42.58% 0.054 -0.1794)
OKLCHoklch(42.58% 0.187 286.7)
XYZxyz(11.6990, 6.6692, 40.1979)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FAD #8EAD2F
analogous
#2F4FAD #4E2FAD #8D2FAD
triadic
#4E2FAD #AD4E2F #2FAD4E
tetradic
#4E2FAD #AD2F4F #8EAD2F #2FAD8D
square
#4E2FAD #AD2F4F #8EAD2F #2FAD8D
split-complementary
#4E2FAD #AD8D2F #4FAD2F
monochromatic
#23154D #38227D #4E2FAD #6B4BCE #937BDB

Accessibility & contrast

On white

9.00
#4E2FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4E2FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FAD
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FAD#FFFFFF#000000##FFFFFF
##4E2FAD1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#25516B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e2fad;
/* rgb */ color: rgb(78, 47, 173);
/* oklch */ color: oklch(42.6% 0.187 286.7);
Tailwind
colors: {
  custom: {
    50: '#8a6bc7',
    500: '#4e2fad',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fad;
$custom-light: #8a6bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fad",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 254.762,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4258,
    "c": 0.18733,
    "h": 286.7
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#4E2FAD
secondary
#B0C474
accent
#E147BB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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