#4E1F7E#4E1F7E

#4E1F7E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.151 H 301.8°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#4E1F7E
RGBrgb(78, 31, 126)
HSLhsl(270, 61%, 31%)
HSVhsv(270, 75%, 49%)
CMYKcmyk(38.1%, 75.4%, 0%, 50.6%)
CIE-LABlab(24.02, 40.98, -44.95)
CIE-LCHlch(24.02, 60.83, 312.35°)
OKLaboklab(36.33% 0.0794 -0.1282)
OKLCHoklch(36.33% 0.151 301.8)
XYZxyz(7.3969, 4.1060, 20.1375)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F7E #4F7E1F
analogous
#1F1F7E #4E1F7E #7D1F7E
triadic
#4E1F7E #7E4E1F #1F7E4E
tetradic
#4E1F7E #7E1F1F #4F7E1F #1F7E7D
square
#4E1F7E #7E1F1F #4F7E1F #1F7E7D
split-complementary
#4E1F7E #7E7D1F #1F7E1F
monochromatic
#11071C #30134D #4E1F7E #6C2BAF #8B46D1

Accessibility & contrast

On white

11.53
#4E1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F7E
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F7E#FFFFFF#000000##FFFFFF
##4E1F7E1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#44374C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1f7e;
/* rgb */ color: rgb(78, 31, 126);
/* oklch */ color: oklch(36.3% 0.151 301.8);
Tailwind
colors: {
  custom: {
    50: '#845fa4',
    500: '#4e1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f7e;
$custom-light: #845fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f7e",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 269.684,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36332,
    "c": 0.15079,
    "h": 301.8
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#4E1F7E
secondary
#7DB148
accent
#E44495
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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