#4E1E7B#4E1E7B

#4E1E7B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.149 H 303.1°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#4E1E7B
RGBrgb(78, 30, 123)
HSLhsl(271, 61%, 30%)
HSVhsv(271, 76%, 48%)
CMYKcmyk(36.6%, 75.6%, 0%, 51.8%)
CIE-LABlab(23.60, 40.68, -43.73)
CIE-LCHlch(23.60, 59.73, 312.93°)
OKLaboklab(35.96% 0.0811 -0.1246)
OKLCHoklch(35.96% 0.149 303.1)
XYZxyz(7.1805, 3.9783, 19.1247)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E7B #4B7B1E
analogous
#201E7B #4E1E7B #7B1E79
triadic
#4E1E7B #7B4E1E #1E7B4E
tetradic
#4E1E7B #7B201E #4B7B1E #1E797B
square
#4E1E7B #7B201E #4B7B1E #1E797B
split-complementary
#4E1E7B #797B1E #1E7B20
monochromatic
#100619 #2F124A #4E1E7B #6D2AAC #8C42D1

Accessibility & contrast

On white

11.70
#4E1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1E7B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E7B#FFFFFF#000000##FFFFFF
##4E1E7B1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#45354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1e7b;
/* rgb */ color: rgb(78, 30, 123);
/* oklch */ color: oklch(36.0% 0.149 303.1);
Tailwind
colors: {
  custom: {
    50: '#845fa2',
    500: '#4e1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e7b;
$custom-light: #845fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e7b",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 270.968,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.35957,
    "c": 0.14865,
    "h": 303.1
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#4E1E7B
secondary
#79AE46
accent
#E44491
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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