#4E1F7F#4E1F7F

#4E1F7F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.152 H 301.4°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4E1F7F
RGBrgb(78, 31, 127)
HSLhsl(269, 61%, 31%)
HSVhsv(269, 76%, 50%)
CMYKcmyk(38.6%, 75.6%, 0%, 50.2%)
CIE-LABlab(24.10, 41.24, -45.45)
CIE-LCHlch(24.10, 61.37, 312.22°)
OKLaboklab(36.42% 0.0792 -0.1296)
OKLCHoklch(36.42% 0.152 301.4)
XYZxyz(7.4617, 4.1319, 20.4790)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F7F #507F1F
analogous
#1F207F #4E1F7F #7E1F7F
triadic
#4E1F7F #7F4E1F #1F7F4E
tetradic
#4E1F7F #7F1F20 #507F1F #1F7F7E
square
#4E1F7F #7F1F20 #507F1F #1F7F7E
split-complementary
#4E1F7F #7F7E1F #207F1F
monochromatic
#12071D #30134E #4E1F7F #6C2BB0 #8B46D2

Accessibility & contrast

On white

11.50
#4E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F7F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F7F#FFFFFF#000000##FFFFFF
##4E1F7F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#43374D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1f7f;
/* rgb */ color: rgb(78, 31, 127);
/* oklch */ color: oklch(36.4% 0.152 301.4);
Tailwind
colors: {
  custom: {
    50: '#845fa5',
    500: '#4e1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f7f;
$custom-light: #845fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f7f",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 269.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36417,
    "c": 0.15192,
    "h": 301.4
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#4E1F7F
secondary
#7EB248
accent
#E44496
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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